Strona 1 z 1

[+]vmware

: 11 marca 2008, 14:04
autor: fanatico
Witam.
Przy konfiguracji vmware dostaje taki błąd:

Kod: Zaznacz cały

debian-fanatico:~/vmware/vmware-server-distrib# 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] n

The path "n" is not an existing directory.

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] y

The path "y" is not an existing directory.

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.

Using 2.6.x kernel build system.
make: Wejście do katalogu `/tmp/vmware-config1/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-config1/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.2.3 while kernel attempts to use gcc version 4.1.3.
/tmp/vmware-config1/vmmon-only/Makefile:91: *** 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-config1/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-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.
Z tego co sie doczytalem do cos z gcc-ze niby mam za nową wersję :?: .Niech ktoś mnie wyprowadzi z błędu i poratuje-a potrzebuje tego softu zeby winde postawic i microshitowego c# expressa.

: 11 marca 2008, 15:27
autor: 3ndriu
Moduł do vmware musi być kompilowany tą samą wersją gcc, co kernel. Musisz zainstalować gcc-4.1 i zrobić symlinka, aby /usr/bin/gcc wskazywał na gcc-4.1. gcc pobierzesz tutaj: http://packages.debian.org/lenny/gcc-4.1 Potem zrób jako root

Kod: Zaznacz cały

dpkg -i gcc-*
a następnie

Kod: Zaznacz cały

ln -s /usr/bin/gcc-4.1 /usr/bin/gcc
Zawsze możesz też skorzystać z Virtualboxa ;-)

: 11 marca 2008, 16:46
autor: fanatico
Dzięki wielkie.Nawet nie spróbowałem bo od razu się zabrałem za virtualboxa :-) .Kiedyś to miałem ale zapomniałem że w ogóle istnieje-punkcik dla Ciebie.

: 14 marca 2008, 21:46
autor: kefear
Plik -> Ustawienia Lokalne -> Klawiatura -> Klawisz Gospodarza

Tam znajduje się owo ustrojstwo ;]