Seite 1 von 1

VMWare Server auf Suse 9.3 und direkt ein Problem.

Verfasst: 31.10.2006, 12:21
von chappy
Hallo zusammen,

ich möchte gerne VMWare Server auf meinem Server mit Suse 9.3 installieren.
Die Installation läuft auch soweit ganz gut bis am Ende folgendes erscheint:
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]


Natürlich bestätige ich mit yes und dann erscheint folgendes:
Using compiler "/usr/bin/gcc". Use environment variable CC to override.

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

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.


Und dann bricht er ab. Kann mir einer von euch helfen wie ich gcc in der Version 4.1.0 am besten installiere? Kenne mich mit Linux ansonsten nicht sooo super aus.
Alles was ich bisher installiert habe ging einfach mit nem Installer :(

Vielen Dank schonmal im vorraus !

Verfasst: 01.11.2006, 10:26
von chappy
Hi,

also es hat nun alles soweit geklappt er nimmt die Pfade nun an allerdings erscheint dann folgendes:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux-2.6.15-20060112174634/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /usr/src/linux-2.6.15-20060112174634/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.15-20060112174634/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.15-20060112174634/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.15-20060112174634'

WARNING: Symbol version dump /usr/src/linux-2.6.15-20060112174634/Module.symvers
is missing; modules will have no dependencies and modversions.

make[2]: gcc: Command not found
/tmp/vmware-config1/vmmon-only/Makefile:127: *** Inappropriate build environment: you wanted to use gcc version 4.1.0 while kernel attempts to use gcc version .
/tmp/vmware-config1/vmmon-only/Makefile:129: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc. Stop.
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15-20060112174634'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/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.


Also ich lese da raus das er gcc NICHT findet. Aber es ist doch da ?
Ein paar Stellen vorher im Installtionsskript sagt er ja sogar nocht:
Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.

Verfasst: 02.11.2006, 10:28
von bolder
Hallo chappy,

wenn ich das richtig sehe, dann sind die Kernel-Sourcen installiert. Das ist auch gut so.

Melde dich als root an und gib ein:

cd /usr/src/linux
make cloneconfig
make prepare

Dann die Installation.

Gruß
Olaf

Verfasst: 02.11.2006, 12:17
von chappy
Hi olaf,

genau das selbe habe ich auch schon gemacht allerdings kommt danach genau der selbe Fehler!? Ich weiß einfach nicht mehr weiter :-(

Sind es vielleicht doch irgendwie die falschen Kernel Sources? Ich bin mir aber zu 99,99% sicher das es die richtigen sind.

Sonst noch irgendwelche Tipps?
Habe auch schon den neusten any-any patch versucht bringt auch nichts.

gruß

stefan

Verfasst: 02.11.2006, 12:20
von bolder
Ist es möglich, dass der Pfad zu gcc fehlt?
Was passiert, wenn du gcc von Hand eingibst?

Verfasst: 02.11.2006, 12:24
von chappy
also wenn ich nur gcc eingebe dann kommt irgendwas wie "no input file" oder sowas ähnliches (weiß es nicht genau weil ich grade keine Möglichkeit habe drauf zuzugreifen).

ich weiß aber das wenn ich gcc --version eingebe mir auch die richtige Version 4.1.0 angezeigt wird.

Verfasst: 02.11.2006, 12:31
von bolder
"no input file" ist klar, weil du ja keines angegeben hast. Aber diese Meldung kommt von gcc, das bedeutet, der Pfad ist korrekt.

Mach doch jetzt noch mal
/usr/bin/vmware-config.pl
und poste das Ergebnis.

Verfasst: 02.11.2006, 12:34
von chappy
hm okay ich mach das nochmal sobald ich zuhause bin da ich hier dank firewall mein putty nicht verwenden kann :(

Aber das habe ich eigentlich gestern schon gemacht was du hier genannt hast und danach kam der selbe Fehler.

Ich werde es so gegen 14 Uhr nochmal versuchen und das Ergebnis hier posten.

Vielen Dank schonmal für deine Hilfe ich melde mich dann.

Gruß

Stefan

Verfasst: 02.11.2006, 13:48
von chappy
so ich habe es nun nochmal ausgeführt wie du gesagt hast und es kommt der selbe fehler hier mal ein auszug:

Code: Alles auswählen

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? [/usr/src/linux-2.6.15-20060112174634/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config15/vmmon-only'
make -C /usr/src/linux-2.6.15-20060112174634/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.15-20060112174634/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.15-20060112174634/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.15-20060112174634'

  WARNING: Symbol version dump /usr/src/linux-2.6.15-20060112174634/Module.symvers
           is missing; modules will have no dependencies and modversions.

make[2]: gcc: Command not found
/tmp/vmware-config15/vmmon-only/Makefile:127: *** Inappropriate build environment: you wanted to use gcc version 4.1.0 while kernel attempts to use gcc version .
/tmp/vmware-config15/vmmon-only/Makefile:129: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc.  Stop.
make[1]: *** [_module_/tmp/vmware-config15/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15-20060112174634'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config15/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.

Verfasst: 02.11.2006, 14:02
von bolder
Eine Idee habe ich noch:
gcc liegt standardmäßig in /usr/bin.
Dies ist auch in der PATH-Variable enthalten.

Bei dir liegt gcc unter /usr/local/bin.
Überprüfe doch mal, ob dieses Verzeichnis in der PATH-Variable enthalten ist. Wenn nicht, dann bitte reinbringen.
Dann sollte der Compiler auch gefunden werden.

Verfasst: 02.11.2006, 14:09
von chappy
Hi,

erstmal vielen Dank für deine Antwort aber kannst du mir vielleicht erklären wie ich das mit der Variable mache?

Wäre super !

Vielen Dank schonmal

Gruß

Stefan

Verfasst: 02.11.2006, 14:19
von bolder
OK - sorry, ich dachte das sei klar.
Erst gibst du mal ein:

echo $PATH

Schau mal, ob da der Pfad
/usr/local/bin
drin steht. Falls ja, haben wir ein Problem, weil ich dann erst mal auch nicht weiter weiß.

Falls der Pfad nicht drin steht, dann gibst du ein:

PATH="$PATH:/usr/local/bin"
export PATH

Danach Kontrolle wieder mit

echo $PATH

Wenn dann der Pfad drin steht, kannst du weiter machen.

Achtung!
Das gilt nur für diese Sitzung, muss dann noch dauerhaft eingetragen werden.
Mehr hierzu später, wenn die ganze Sache erfolgreich war.

Verfasst: 02.11.2006, 14:22
von chappy
hm der Pfad steht drin :(

/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:.

Verfasst: 02.11.2006, 14:32
von bolder
bitte jetzt mal:

find / -name gcc

Verfasst: 02.11.2006, 14:34
von chappy

Code: Alles auswählen

alphaxxx:/ # find / -name gcc
find: WARNING: Hard link count is wrong for /proc/4793: this may be a bug in your filesystem driver.  Automatically turning on find's -noleaf option.  Earlier results may have failed to include directories that should have been searched.
/usr/lib/gcc
/usr/local/bin/gcc
/usr/local/lib/gcc
/usr/local/libexec/gcc
/usr/src/linux-2.6.15-20060112174634/include/asm-mips/gcc
/gcc-4.1.0/gcc
/gcc-4.1.0/gcc/testsuite/ada/acats/tests/gcc
/gcc-4.1.0/host-i686-pc-linux-gnu/gcc

Verfasst: 02.11.2006, 14:40
von bolder
Sorry - jetzt geht bei mir leider nix mehr.
Pfad ist richtig, vmware-config.pl nutzt auch den richtigen Pfad, aber gcc wird trotzdem nicht gefunden.
Mehr Ideen habe ich nicht mehr.

Hoffentlich kann jemand anderes helfen - viel Glück!

Olaf

Verfasst: 02.11.2006, 14:41
von chappy
Alles klar vielen dank trotzdem an dich!

Falls dir noch was einfällt kannst dich ja gerne melden.

Gruß

Stefan