HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Pls Help - Problem installing OpenVZ with Debian Etch. (http://www.howtoforge.com/forums/showthread.php?t=9782)

joelee 13th January 2007 23:08

Pls Help - Problem installing OpenVZ with Debian Etch.
 
1 Attachment(s)
I am following this How-To: http://www.howtoforge.com/debian_etch_openvz

To getting OpenVZ installed on Debian Etch. I am getting the error below after
entering command:

make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 kernel_image

Below is the Error output and as you can see it complains about GCC command not found? Below is the error output:

* some of the repeated output has been Truncated *

Code:

debian:/usr/src/linux-source-2.6.18# make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 kernel_image

exec make -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=1  APPEND_TO_VERSION=-1-openvz  KPKG_SELECTED_PATCHES="openvz"
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found

dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
====== making target minimal_debian [new prereqs: ]======
This is kernel package version .
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
test -f debian/control || sed        -e 's/=V/2.6.18-1-openvz/g'        \
                -e 's/=D/1/g'        -e 's/=A/i386/g'  \
                -e 's/=SA//g'  -e 's/=L/ /g' \
                -e 's/=I//g'                                    \
                -e 's/=CV/2.6/g'                      \
                -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g'                        \
                -e 's/=ST/linux/g'      -e 's/=B/i386/g'    \
                        /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/2.6.18-1-openvz/g'            \
            -e 's/=D/1/g'        -e 's/=A/i386/g'      \
            -e 's/=ST/linux/g'    -e 's/=B/i386/g'        \
            -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g'                            \
            /usr/share/kernel-package/changelog > debian/changelog
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do                                      \
            cp -f  /usr/share/kernel-package/$file ./debian/;                              \
        done
for dir  in Config docs examples ruleset scripts pkg po;  do                                      \
          cp -af /usr/share/kernel-package/$dir  ./debian/;                                \
        done
test -d ./debian/stamps || mkdir debian/stamps
exec debian/rules  DEBIAN_REVISION=1  APPEND_TO_VERSION=-1-openvz  KPKG_SELECTED_PATCHES="openvz"  kernel_image
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
====== making target CONFIG-common [new prereqs: testdir]======

====== making target debian/stamp-conf [new prereqs: ]======
# work around idiocy in recent kernel versions
test ! -e scripts/package/builddeb || \
            mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -e scripts/package/Makefile || \
            (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && \
              (echo "# Dummy file "; echo "help:") >  scripts/package/Makefile)
test -d debian || mkdir ./debian
test ! -e stamp-building || rm -f stamp-building
test ! -f ./debian || test -f stamp-debian || test -f debian/official || \
              (rm -rf ./debian && mkdir ./debian)
test ! -f applied_patches || rm -f applied_patches
for patch in /usr/src/kernel-patches/all/apply/openvz ; do            \
          if test -x  $patch; then                    \
              if $patch; then                        \
                  echo "Patch $patch processed fine"; \
                  echo "$patch" >> applied_patches;  \
              else                                    \
                  echo "Patch $patch  failed.";      \
                  echo "Hit return to Continue";      \
                  read ans;                          \
              fi;                                      \
          fi;                                          \
        done
START applying openvz patch (OpenVZ kernel patch for virtual server support)
Testing whether "OpenVZ kernel patch for virtual server support" patch for 2.6.18 applies (dry run):
6 out of 30 hunks FAILED -- saving rejects to file net/ipv4/netfilter/ip_tables.c.rej
1 out of 8 hunks FAILED -- saving rejects to file net/ipv6/udp.c.rej
"OpenVZ kernel patch for virtual server support" patch for 2.6.18 does not apply cleanly
Patch /usr/src/kernel-patches/all/apply/openvz  failed.
Hit return to Continue
make: *** wait: No child processes.  Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes.  Stop.


Then I tryed to install gcc with apt-get install gcc and still getting the errors.
I've attached a text file of the errors in hope someone can help!


Would really appreciate any help! I am trying to get a good install done quickly!

PS: I think this how2 is good BUT think somewhere it is confusing or missing a step or so that is causing this error.

Joe

till 14th January 2007 11:33

What is the output of:

which gcc

joelee 14th January 2007 18:29

Till, here's the output of GCC... Note: I just ran a new install - The output below is based on new fresh new install Debian Etch.

Code:

debian:~# which gcc
debian:~#

It looks like gcc is not installed as part of the normal debian etch installation. Also, I did a apt-update as well - still same thing.
joe

till 14th January 2007 18:37

Please run:

apt-get install gcc cpp g++ bison flex


All times are GMT +2. The time now is 09:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.