VMware --- b

Tematy związane z oprogramowaniem, instalacją, konfiguracją
_x_a
Posty: 27
Rejestracja: 01 marca 2008, 18:43

VMware --- błąd instalacji

Post autor: _x_a »

Instalowałem VMware według poradnika Kaki, podczas konfiguracji występuje taki błąd:

Kod: Zaznacz cały

# 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/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.1.3", while you are trying to use
"/usr/bin/gcc" version "4.2.3". This configuration is not recommended and
VMware Server may crash if you'll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.2.3" anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.22-3-686/build/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: Wejście do katalogu `/tmp/vmware-config5/vmmon-only'
make -C /lib/modules/2.6.22-3-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.22-3-686'
/tmp/vmware-config5/vmmon-only/Makefile:127: *** Inappropriate build environment: you wanted to use gcc version 4.2.3 while kernel attempts to use gcc version 4.1.3.
/tmp/vmware-config5/vmmon-only/Makefile:129: *** For proper build you'll have to replace  gcc-4.1 -m32 with symbolic link to /usr/bin/gcc. Stop.
make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.22-3-686'
make: *** [vmmon.ko] Błąd 2
make: Opuszczenie katalogu `/tmp/vmware-config5/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.
zoltan
Posty: 68
Rejestracja: 11 lutego 2008, 11:26

Post autor: zoltan »

Twój kernel był kompilowany starszą wersją gcc niż masz obecnie.I teraz vmware kiedy używa nowszego gcc do kompilacji modułów ma problem.
Są dwie możliwości
1. Skompiluj swój kernel posiadaną obecnie wersją gcc.
2. Doinstaluj starsze (nie usuwaj tego co masz tylko dodaj starsze z repozytorium) i zmień domyślne gcc na tą starszą wersję - tyu masz rozwiązanie

http://debian.linux.pl/viewtopic.php?t= ... nfiguracja
_x_a
Posty: 27
Rejestracja: 01 marca 2008, 18:43

Post autor: _x_a »

Robię wszystko jak opisane w tym temacie aż do momentu gdzie trzeba wpisać polecenie

Kod: Zaznacz cały

locate cc1plus
U mnie wpisując to w konsoli wyświetla się:

Kod: Zaznacz cały

locate: can not open `/var/lib/mlocate/mlocate.db': Nie ma takiego pliku ani katalogu


[ Dodano: 2008-04-14, 15:10 ]
Chyba coś pokopałem bo teraz wyskakuje mi

Kod: Zaznacz cały

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Wejście do katalogu `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.22-3-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.22-3-686'
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/hash.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/task.o
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
include/asm/page.h: In function ‘pte_t native_make_pte(long unsigned int)’:
include/asm/page.h:112: error: expected primary-expression before &#8216 ;) ’ token
include/asm/page.h:112: error: expected ‘;’ before ‘{’ token
include/asm/page.h:112: error: expected primary-expression before ‘.’ token
include/asm/page.h:112: error: expected `;' before ‘}’ token
make[2]: *** [/tmp/vmware-config3/vmmon-only/common/task.o] Błąd 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.22-3-686'
make: *** [vmmon.ko] Błąd 2
make: Opuszczenie katalogu `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.


[ Dodano: 2008-04-14, 15:42 ]
Okazało się, ze nie zainstalowałem poprawki o której jest mowa w poradniku Kaki. Już wszystko działa, ;)
ODPOWIEDZ