LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2006, 04:32 AM   #1
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Rep: Reputation: 0
Trouble building vmmon module for VMware Server with Slackware 10.2


My system is a clean install other than the upgraded 2.6.17.1 kernel and an upgraded gcc 4.1.1 since I read it caused trouble with this.

I've reinstalled Slackware more times than I can count trying to get this bugger to work and each time a new problem crops up.

Any help would really be appreciated.

Code:
root@lugh:~# which gcc
/usr/local/bin/gcc
root@lugh:~# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /usr/src/gcc-4.1.1/configure
Thread model: posix
gcc version 4.1.1
root@lugh:~#
Code:
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Setup is unable to find the "gcc" program on your machine.  Please make sure it
is installed.  Do you want to specify the location of this program by hand?
[yes]

What is the location of the "gcc" program on your machine?

The answer "" is invalid.  It must be the complete name of a binary file.

What is the location of the "gcc" program on your machine? /usr/local/bin/gcc

Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17.1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config7/vmmon-only'
make -C /lib/modules/2.6.17.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
make[2]: gcc: Command not found
/tmp/vmware-config7/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.1.1 while kernel attempts to use gcc version .
/tmp/vmware-config7/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc.  Stop.
make[1]: *** [_module_/tmp/vmware-config7/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config7/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

root@lugh:/usr/src/vmware-server-distrib#
 
Old 07-03-2006, 05:15 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Sounds like the symbolic link needs changed.
Use find /usr -iname '*gcc*' to find your version 4.1.1
On my slackbox, I only have /usr/bin/i486-slackware-linux-gcc-3.3.6, so its likely in the same location only you've upgraded to 4.1.1


Once you find the gcc-4.1.1 executable
Code:
ln  -sf  /usr/bin/<gcc-4.1.1>   /usr/local/bin/gcc

Last edited by musicman_ace; 07-03-2006 at 05:17 AM.
 
Old 07-03-2006, 05:41 AM   #3
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, but it didn't work.

This is what I did:
Code:
root@lugh:~# find /usr -iname '*gcc*'
/usr/bin/gccbug
/usr/bin/gcc-3.3.6
/usr/bin/i486-slackware-linux-gcc-3.3.6
/usr/bin/i486-slackware-linux-gcc
/usr/bin/g++-gcc-3.3.6
/usr/doc/gcc-3.3.6
/usr/doc/gcc-3.3.6/gcc
/usr/doc/gcc-3.3.6/gcc/ABOUT-GCC-NLS
/usr/doc/Linux-FAQs/GCC-SIG11-FAQ
/usr/doc/Linux-HOWTOs/GCC-Frontend-HOWTO
/usr/lib/libgcc_s.so.1
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/libgcc_eh.a
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/libgcc.a
/usr/lib/libgcc_s.so
/usr/lib/jre1.5.0_04/lib/i386/libjavaplugin_nscp_gcc29.so
/usr/lib/jre1.5.0_04/plugin/i386/ns7-gcc29
/usr/lib/qt-3.3.4/mkspecs/linux-pgcc
/usr/lib/vmware/lib/libgcc_s.so.1
/usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
/usr/man/man1/gcc.1.gz
/usr/src/linux-2.4.31/arch/arm/lib/gcclib.h
/usr/src/linux-2.4.31/arch/arm/nwfpe/ARM-gcc.h
/usr/src/linux-2.4.31/include/acpi/platform/acgcc.h
/usr/src/linux-2.4.31/include/asm-mips64/gcc
/usr/src/linux-2.4.31/include/asm-mips/gcc
/usr/src/linux-2.6.17.1/arch/arm/nwfpe/ARM-gcc.h
/usr/src/linux-2.6.17.1/arch/arm26/lib/gcclib.h
/usr/src/linux-2.6.17.1/arch/arm26/nwfpe/ARM-gcc.h
/usr/src/linux-2.6.17.1/include/acpi/platform/acgcc.h
/usr/src/linux-2.6.17.1/include/asm-ia64/gcc_intrin.h
/usr/src/linux-2.6.17.1/include/linux/compiler-gcc.h
/usr/src/linux-2.6.17.1/include/linux/compiler-gcc3.h
/usr/src/linux-2.6.17.1/include/linux/compiler-gcc4.h
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh
/usr/src/vmware-server-distrib/lib/lib/libgcc_s.so.1
/usr/src/vmware-server-distrib/lib/lib/libgcc_s.so.1/libgcc_s.so.1
/usr/src/gcc-4.1.1
/usr/src/gcc-4.1.1/gcc
/usr/src/gcc-4.1.1/gcc/doc/gcc.texi
/usr/src/gcc-4.1.1/gcc/doc/include/gcc-common.texi
/usr/src/gcc-4.1.1/gcc/doc/gccint.texi
/usr/src/gcc-4.1.1/gcc/doc/gcc.info
/usr/src/gcc-4.1.1/gcc/doc/libgcc.texi
/usr/src/gcc-4.1.1/gcc/doc/gccint.info
/usr/src/gcc-4.1.1/gcc/doc/gccinstall.info
/usr/src/gcc-4.1.1/gcc/doc/gcc.1
/usr/src/gcc-4.1.1/gcc/ABOUT-GCC-NLS
/usr/src/gcc-4.1.1/gcc/gcc.c
/usr/src/gcc-4.1.1/gcc/gcc.h
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.c-torture
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.target
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.target/x86_64/abi/README.gcc
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-1.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-3.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-5.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-7.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-9.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-c.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-e.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-g.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-2.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-4.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-6.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-8.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-b.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-d.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/vmx/gcc-bug-f.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-1.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-3.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-5.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-7.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-9.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_gfc-1.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-2.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-4.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-6.c
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.dg/format/gcc_diag-8.c
/usr/src/gcc-4.1.1/gcc/testsuite/ada/acats/tests/gcc
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.misc-tests
/usr/src/gcc-4.1.1/gcc/testsuite/README.gcc
/usr/src/gcc-4.1.1/gcc/testsuite/gcc.test-framework
/usr/src/gcc-4.1.1/gcc/testsuite/lib/gcc.exp
/usr/src/gcc-4.1.1/gcc/testsuite/lib/gcc-dg.exp
/usr/src/gcc-4.1.1/gcc/testsuite/lib/gcc-defs.exp
/usr/src/gcc-4.1.1/gcc/testsuite/lib/mike-gcc.exp
/usr/src/gcc-4.1.1/gcc/ada/raise-gcc.c
/usr/src/gcc-4.1.1/gcc/ada/tb-gcc.c
/usr/src/gcc-4.1.1/gcc/ada/a-exexpr-gcc.adb
/usr/src/gcc-4.1.1/gcc/libgcc2.c
/usr/src/gcc-4.1.1/gcc/libgcc2.h
/usr/src/gcc-4.1.1/gcc/mklibgcc.in
/usr/src/gcc-4.1.1/gcc/gccbug.in
/usr/src/gcc-4.1.1/gcc/po/gcc.pot
/usr/src/gcc-4.1.1/gcc/config.gcc
/usr/src/gcc-4.1.1/gcc/gccspec.c
/usr/src/gcc-4.1.1/gcc/config/frv/libgcc-frv.ver
/usr/src/gcc-4.1.1/gcc/config/t-slibgcc-sld
/usr/src/gcc-4.1.1/gcc/config/t-slibgcc-darwin
/usr/src/gcc-4.1.1/gcc/config/t-libgcc-pic
/usr/src/gcc-4.1.1/gcc/config/s390/libgcc-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/ia64/libgcc-ia64.ver
/usr/src/gcc-4.1.1/gcc/config/sparc/libgcc-sparc-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/m32r/libgcc-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/m68k/t-slibgcc-elf-ver
/usr/src/gcc-4.1.1/gcc/config/i386/netware-libgcc.c
/usr/src/gcc-4.1.1/gcc/config/i386/netware-libgcc.exp
/usr/src/gcc-4.1.1/gcc/config/i386/darwin-libgcc.10.5.ver
/usr/src/gcc-4.1.1/gcc/config/i386/netware-libgcc.def
/usr/src/gcc-4.1.1/gcc/config/i386/libgcc-x86_64-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/i386/darwin-libgcc.10.4.ver
/usr/src/gcc-4.1.1/gcc/config/rs6000/libgcc-ppc64.ver
/usr/src/gcc-4.1.1/gcc/config/rs6000/libgcc-ppc-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/rs6000/darwin-libgcc.10.4.ver
/usr/src/gcc-4.1.1/gcc/config/rs6000/darwin-libgcc.10.5.ver
/usr/src/gcc-4.1.1/gcc/config/sh/libgcc-excl.ver
/usr/src/gcc-4.1.1/gcc/config/sh/libgcc-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/arm/libgcc-bpabi.ver
/usr/src/gcc-4.1.1/gcc/config/avr/libgcc.S
/usr/src/gcc-4.1.1/gcc/config/t-slibgcc-nolc-override
/usr/src/gcc-4.1.1/gcc/config/c4x/libgcc.S
/usr/src/gcc-4.1.1/gcc/config/pa/t-slibgcc-sjlj-ver
/usr/src/gcc-4.1.1/gcc/config/pa/t-slibgcc-dwarf-ver
/usr/src/gcc-4.1.1/gcc/config/mips/t-slibgcc-irix
/usr/src/gcc-4.1.1/gcc/config/libgcc-glibc.ver
/usr/src/gcc-4.1.1/gcc/config/t-slibgcc-elf-ver
/usr/src/gcc-4.1.1/gcc/libgcc-std.ver
/usr/src/gcc-4.1.1/gcc/gcc
/usr/src/gcc-4.1.1/zlib/win32/Makefile.gcc
/usr/src/gcc-4.1.1/boehm-gc/include/private/gcconfig.h
/usr/src/gcc-4.1.1/boehm-gc/gcc_support.c
/usr/src/gcc-4.1.1/contrib/regression/objs-gcc.sh
/usr/src/gcc-4.1.1/contrib/regression/btest-gcc.sh
/usr/src/gcc-4.1.1/contrib/gccbug.el
/usr/src/gcc-4.1.1/contrib/gcc_update
/usr/src/gcc-4.1.1/contrib/filter_gcc_for_doxygen
/usr/src/gcc-4.1.1/contrib/gcc_build
/usr/src/gcc-4.1.1/maintainer-scripts/gcc_release
/usr/src/gcc-4.1.1/objdir/fastjar/gcc-vers.texi
/usr/src/gcc-4.1.1/objdir/gcc
/usr/src/gcc-4.1.1/objdir/gcc/gccbug
/usr/src/gcc-4.1.1/objdir/gcc/mklibgcc
/usr/src/gcc-4.1.1/objdir/gcc/doc/gcc.info
/usr/src/gcc-4.1.1/objdir/gcc/doc/gccint.info
/usr/src/gcc-4.1.1/objdir/gcc/gcc.o
/usr/src/gcc-4.1.1/objdir/gcc/gccspec.o
/usr/src/gcc-4.1.1/objdir/gcc/xgcc
/usr/src/gcc-4.1.1/objdir/gcc/libgcc.mk
/usr/src/gcc-4.1.1/objdir/gcc/libgcc
/usr/src/gcc-4.1.1/objdir/gcc/libgcc/__gcc_bcmp.o
/usr/src/gcc-4.1.1/objdir/gcc/libgcc/libgcc.map
/usr/src/gcc-4.1.1/objdir/gcc/libgcc.a
/usr/src/gcc-4.1.1/objdir/gcc/libgcc_eh.a
/usr/src/gcc-4.1.1/objdir/gcc/libgcc_s.so.1.backup
/usr/src/gcc-4.1.1/objdir/gcc/libgcc_s.so.1
/usr/src/gcc-4.1.1/objdir/gcc/gcc-vers.texi
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc/__gcc_bcmp.o
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc/libgcc.map
/usr/src/gcc-4.1.1/objdir/gcc/stage1/gcc.o
/usr/src/gcc-4.1.1/objdir/gcc/stage1/gccspec.o
/usr/src/gcc-4.1.1/objdir/gcc/stage1/xgcc
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc.mk
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc.a
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc_eh.a
/usr/src/gcc-4.1.1/objdir/gcc/stage1/libgcc_s.so
/usr/src/gcc-4.1.1/objdir/gcc/libgcc_s.so
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc/__gcc_bcmp.o
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc/libgcc.map
/usr/src/gcc-4.1.1/objdir/gcc/stage2/gcc.o
/usr/src/gcc-4.1.1/objdir/gcc/stage2/gccspec.o
/usr/src/gcc-4.1.1/objdir/gcc/stage2/xgcc
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc.mk
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc.a
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc_eh.a
/usr/src/gcc-4.1.1/objdir/gcc/stage2/libgcc_s.so
/usr/src/gcc-4.1.1/objdir/i686-pc-linux-gnu/libjava/classpath/lib/usr/src/gcc-4.1.1
/usr/src/gcc-4.1.1.tar.bz2
/usr/info/gcc.info.gz
/usr/info/gccint.info.gz
/usr/X11R6/bin/gccmakedep
/usr/X11R6/man/man1/gccmakedep.1x.gz
/usr/local/bin/gccbug
/usr/local/bin/gcc
/usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1
/usr/local/bin/i686-pc-linux-gnu-gcc
/usr/local/lib/gcc
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc.a
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_eh.a
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so
/usr/local/man/cat1/gcc.1.bz2
/usr/local/man/man1/gcc.1
/usr/local/info/gcc.info
/usr/local/info/gccinstall.info
/usr/local/info/gccint.info
/usr/local/libexec/gcc
/usr/local/share/locale/be/LC_MESSAGES/gcc.mo
/usr/local/share/locale/ca/LC_MESSAGES/gcc.mo
/usr/local/share/locale/da/LC_MESSAGES/gcc.mo
/usr/local/share/locale/de/LC_MESSAGES/gcc.mo
/usr/local/share/locale/el/LC_MESSAGES/gcc.mo
/usr/local/share/locale/es/LC_MESSAGES/gcc.mo
/usr/local/share/locale/fr/LC_MESSAGES/gcc.mo
/usr/local/share/locale/ja/LC_MESSAGES/gcc.mo
/usr/local/share/locale/nl/LC_MESSAGES/gcc.mo
/usr/local/share/locale/rw/LC_MESSAGES/gcc.mo
/usr/local/share/locale/sv/LC_MESSAGES/gcc.mo
/usr/local/share/locale/tr/LC_MESSAGES/gcc.mo
/usr/local/share/locale/zh_CN/LC_MESSAGES/gcc.mo
/usr/local/share/locale/zh_TW/LC_MESSAGES/gcc.mo
/usr/share/locale/be/LC_MESSAGES/gcc.mo
/usr/share/locale/ca/LC_MESSAGES/gcc.mo
/usr/share/locale/da/LC_MESSAGES/gcc.mo
/usr/share/locale/de/LC_MESSAGES/gcc.mo
/usr/share/locale/el/LC_MESSAGES/gcc.mo
/usr/share/locale/es/LC_MESSAGES/gcc.mo
/usr/share/locale/fr/LC_MESSAGES/gcc.mo
/usr/share/locale/ja/LC_MESSAGES/gcc.mo
/usr/share/locale/nl/LC_MESSAGES/gcc.mo
/usr/share/locale/sv/LC_MESSAGES/gcc.mo
/usr/share/locale/tr/LC_MESSAGES/gcc.mo
/usr/share/locale/rw/LC_MESSAGES/gcc.mo
/usr/share/ghostscript/8.15/Resource/CMap/HKgccs-B5-H
/usr/share/ghostscript/8.15/Resource/CMap/HKgccs-B5-V
/usr/share/zsh/4.2.5/functions/_gcc
root@lugh:~#
root@lugh:~# ln  -sf  /usr/local/bin/i686-pc-linux-gnu-
i686-pc-linux-gnu-c++        i686-pc-linux-gnu-gcc-4.1.1  i686-pc-linux-gnu-gfortran
i686-pc-linux-gnu-g++        i686-pc-linux-gnu-gcj
i686-pc-linux-gnu-gcc        i686-pc-linux-gnu-gcjh
root@lugh:~# ln  -sf  /usr/local/bin/i686-pc-linux-gnu-gc
i686-pc-linux-gnu-gcc        i686-pc-linux-gnu-gcj
i686-pc-linux-gnu-gcc-4.1.1  i686-pc-linux-gnu-gcjh
root@lugh:~# ln  -sf  /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 /usr/local/bin/gc
gcc         gccbug      gcj         gcj-dbtool  gcjh        gcov
root@lugh:~# ln  -sf  /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 /usr/local/bin/gcc
root@lugh:~#
And this is what happened:
Code:
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17.1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config8/vmmon-only'
make -C /lib/modules/2.6.17.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
make[2]: gcc: Command not found
/tmp/vmware-config8/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.1.1 while kernel attempts to use gcc version .
/tmp/vmware-config8/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc.  Stop.
make[1]: *** [_module_/tmp/vmware-config8/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config8/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

root@lugh:/usr/src/vmware-server-distrib#
Or did I fudge up somewhere?
 
Old 07-03-2006, 06:11 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Looks to me like /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 would be the gcc-4.1.1 executable. I can't verify that, so you should navigate to that directory and check the file permissions to verify that that file is the gcc executable. If it is, then create a symbolic link as suggested in vmware's error output

--EDIT--
Just for grins, gcc-config -l and verify that you have 4.1.1 as your current compiler.

Last edited by musicman_ace; 07-03-2006 at 06:13 AM.
 
Old 07-03-2006, 08:53 AM   #5
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
I'm not sure how to check file permisions, but I know that is the executable because:

Code:
root@lugh:~# /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1
i686-pc-linux-gnu-gcc-4.1.1: no input files
root@lugh:~#
And gcc-config doesn't work; No command found.

I can do gcc -v and get

Code:
root@lugh:~# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /usr/src/gcc-4.1.1/configure
Thread model: posix
gcc version 4.1.1
root@lugh:~#
And I'm not exactly sure how to do symbolic links. I tried it a few times before but I don't they worked.
 
Old 07-03-2006, 09:48 AM   #6
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
creating a symbolic link should be
Code:
ln -s /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 /usr/local/bin/gcc
However, I usually mess it up by putting the target and destination in the wrong order. I believe the above should do it, if it doesn't then reverse the two paths

As for checking file permissions, ls -l will give you something like:

drwxrw-r-x


D is directory, if its not a directory then the d would be a -
the others are Read, Write, and eXecute.
 
Old 07-04-2006, 11:37 AM   #7
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Code:
root@lugh:/usr/src/php-5.1.4# ln -s /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 /usr/local/bin/gcc
ln: `/usr/local/bin/gcc': File exists
root@lugh:/usr/src/php-5.1.4# ln -s /usr/local/bin/gcc /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1
ln: `/usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1': File exists
 
Old 07-04-2006, 02:07 PM   #8
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Post the output of ls -l /usr/local/bin/
 
Old 07-05-2006, 12:16 AM   #9
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Code:
root@lugh:/usr/src/php-5.1.4# ls -l /usr/local/bin/
total 21460
-rwxr-xr-x  1 root root     1022 2006-06-24 21:31 addr2name.awk*
-rwxr-xr-x  4 root root   370648 2006-06-24 21:30 c++*
-rwxr-xr-x  1 root root   370253 2006-06-24 21:31 cpp*
-rwxr-xr-x  1 root root   199671 2006-06-24 21:30 fastjar*
-rwxr-xr-x  4 root root   370648 2006-06-24 21:30 g++*
lrwxrwxrwx  1 root root       42 2006-07-03 05:37 gcc -> /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1*
-rwxr-xr-x  1 root root    15840 2006-06-24 21:30 gccbug*
-rwxr-xr-x  2 root root   377910 2006-06-24 21:30 gcj*
-rwxr-xr-x  1 root root    62756 2006-06-24 21:31 gcj-dbtool*
-rwxr-xr-x  2 root root   333036 2006-06-24 21:30 gcjh*
-rwxr-xr-x  1 root root    99929 2006-06-24 21:30 gcov*
-rwxr-xr-x  2 root root   373072 2006-06-24 21:30 gfortran*
-rwxr-xr-x  1 root root    11354 2006-06-24 21:31 gij*
-rwxr-xr-x  1 root root   333044 2006-06-24 21:30 gjnih*
-rwxr-xr-x  1 root root   219856 2006-06-24 21:30 grepjar*
-rwxr-xr-x  1 root root    12580 2006-06-24 21:31 grmic*
-rwxr-xr-x  1 root root    12621 2006-06-24 21:31 grmiregistry*
-rwxr-xr-x  4 root root   370648 2006-06-24 21:30 i686-pc-linux-gnu-c++*
-rwxr-xr-x  4 root root   370648 2006-06-24 21:30 i686-pc-linux-gnu-g++*
-rwxr-xr-x  2 root root   365350 2006-06-24 21:31 i686-pc-linux-gnu-gcc*
-rwxr-xr-x  2 root root   365350 2006-06-24 21:31 i686-pc-linux-gnu-gcc-4.1.1*
-rwxr-xr-x  2 root root   377910 2006-06-24 21:30 i686-pc-linux-gnu-gcj*
-rwxr-xr-x  2 root root   333036 2006-06-24 21:30 i686-pc-linux-gnu-gcjh*
-rwxr-xr-x  2 root root   373072 2006-06-24 21:30 i686-pc-linux-gnu-gfortran*
-rwxr-xr-x  1 root root   375906 2006-06-24 21:30 jcf-dump*
-rwxr-xr-x  1 root root    12581 2006-06-24 21:31 jv-convert*
-rwxr-xr-x  1 root root   167926 2006-06-24 21:30 jv-scan*
-rwxr-xr-x  1 root root    24280 2006-06-23 10:42 mbchk*
-rwxr-xr-x  1 root root      700 2006-07-03 07:51 pear*
-rwxr-xr-x  1 root root      721 2006-07-03 07:51 peardev*
-rwxr-xr-x  1 root root      684 2006-07-03 07:51 pecl*
-rwxr-xr-x  1 root root 15480853 2006-07-03 10:45 php*
-rwxr-xr-x  1 root root     1103 2006-07-03 10:45 php-config*
-rwxr-xr-x  1 root root     4165 2006-07-03 10:45 phpize*
 
Old 07-05-2006, 02:12 AM   #10
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Code:
lrwxrwxrwx  1 root root       42 2006-07-03 05:37 gcc -> /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1*
That shows that the /usr/loca/bin/gcc is already a symbolic link to the 4.1.1 version of gcc. Just for fun, remove /usr/local/bin/gcc and then recreate the symbolic link.

If that doesn't work, then I'm thinking that it wants the symbolic link to be the older version of gcc.
 
Old 07-05-2006, 02:20 AM   #11
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Code:
root@lugh:/usr/src/php-5.1.4# rm /usr/local/bin/gcc
root@lugh:/usr/src/php-5.1.4# ln -s /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 /usr/local/bin/gcc
root@lugh:/usr/src/php-5.1.4# /usr/bin/vm
vm-support           vmnet-netifup        vmware-authtrusted   vmware-ping
vmake                vmnet-sniffer        vmware-cmd           vmware-uninstall.pl
vmnet-bridge         vmrun                vmware-config.pl     vmware-vdiskmanager
vmnet-dhcpd          vmstat               vmware-loop
vmnet-natd           vmware               vmware-mount.pl
root@lugh:/usr/src/php-5.1.4# /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17.1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config10/vmmon-only'
make -C /lib/modules/2.6.17.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
make[2]: gcc: Command not found
/tmp/vmware-config10/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.1.1 while kernel attempts to use gcc version .
/tmp/vmware-config10/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc.  Stop.
make[1]: *** [_module_/tmp/vmware-config10/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config10/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

root@lugh:/usr/src/php-5.1.4#
So I linked it to the old version and got

Code:
Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.1.1", while you are trying to use
"/usr/local/bin/gcc" version "3.3.6". This configuration is not supported and
VMware Server cannot work in such configuration. Please either recompile your
kernel with "/usr/local/bin/gcc" version "3.3.6", or restart
/usr/bin/vmware-config.pl with CC environment variable pointing to the "gcc"
version "4.1.1".

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

root@lugh:/usr/src/php-5.1.4#
 
Old 07-05-2006, 03:02 PM   #12
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Could you post your PATH output. After re-reading, the gcc getting executed needs to be re-linked to /usr/local/bin/gcc, which means that there is probably another link to this link. We'll need to check each directory in your PATH in sequence until we find it and then verify that it links to /usr/local/bin/gcc.
 
Old 07-15-2006, 03:23 PM   #13
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
I'm really sorry but had to go away for a little over a week and barely had enough time to tell my friends.

Anyways I tried typing PATH and path into the shell but got nothing. Googled Path but just got howtos on setting the path and adding stuff but not reading it.
 
Old 07-15-2006, 07:50 PM   #14
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
try echo $PATH

when you installed gcc-4 did you uninstall the old version. could be conflicts

you might try

export CC=/usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1
 
Old 07-15-2006, 09:01 PM   #15
Lothoir
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks.
Here's what I got.
Code:
root@lugh:~# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin
root@lugh:~#
And I didn't uninstall my previous version, I don't know how, and I'm pretty sure the guide told me not to uninstall.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vmware: trouble with loading of vmmon -- already compilled Adony Linux - Software 6 01-17-2012 10:11 PM
Vmware missing device /dev/vmmon blavish Linux - Software 4 08-01-2010 04:49 AM
VMware vmmon building error Akuji Slackware 2 02-01-2004 07:58 AM
VMware module building kernel error ^^ ZoNicONE Linux - Newbie 3 09-09-2003 01:52 PM
slackware 9 and vmware vmmon probs duister Slackware 4 07-31-2003 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration