LINUX.ORG.RU

Проблема при установке vmware


0

0

openSuSe 10.3 VMware-workstation-5.5.3-34685.i386.rpm (думаю что этот пакет для openSusE 10.2) Пытаюсь поставить: linux-qnsw:/home/dim # vmware-config.pl Making sure services for VMware Workstation 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 Workstation 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.

What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.22.5-31-default/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-config4/vmmon-only' make -C /lib/modules/2.6.22.5-31-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PW D/. modules make[1]: Entering directory `/usr/src/linux-2.6.22.5-31-obj/i386/default' make -C ../../../linux-2.6.22.5-31 O=../linux-2.6.22.5-31-obj/i386/default modules CC [M] /tmp/vmware-config4/vmmon-only/linux/driver.o In file included from /tmp/vmware-config4/vmmon-only/linux/driver.c:80: /tmp/vmware-config4/vmmon-only/./include/compat_kernel.h:21: error: expected decla ration specifiers or ‘...’ before ‘compat_exit’ /tmp/vmware-config4/vmmon-only/./include/compat_kernel.h:21: error: expected decla ration specifiers or ‘...’ before ‘exit_code’ /tmp/vmware-config4/vmmon-only/./include/compat_kernel.h:21: warning: type default s to ‘int’ in declaration of ‘_syscall1’ make[4]: *** [/tmp/vmware-config4/vmmon-only/linux/driver.o] Ошибка 1 make[3]: *** [_module_/tmp/vmware-config4/vmmon-only] Ошибка 2 make[2]: *** [modules] Ошибка 2 make[1]: *** [modules] Ошибка 2 make[1]: Leaving directory `/usr/src/linux-2.6.22.5-31-obj/i386/default' make: *** [vmmon.ko] Ошибка 2 make: Leaving directory `/tmp/vmware-config4/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.

И что мне с этим делать?

Re: Проблема при установке vmware

Я эту проблему решил так:

Находишь файлик
/opt/vmware/workstation/lib/modules/source/vmmon.tar

распаковываешь.
накладываешь патчик

--- old/vmmon-only/include/compat_kernel.h   2005-12-16 10:49:15.000000000
 +0500
+++ new/vmmon-only/include/compat_kernel.h   2007-10-08 19:25:07.000000000
 +0600
@@ -18,7 +18,7 @@
  * provided by x86-64, arm and other (but not by i386).
  */
 #define __NR_compat_exit __NR_exit
-static inline _syscall1(int, compat_exit, int, exit_code);
+static inline _syscall1(int, int compat_exit, int, int exit_code);


 /*

запаковываешь обратно

запускаешь снова vmware-config.pl

А лучше просто попробуй поставить vmware посвежее.

Nao ★★★★★ ()
Ответ на: Re: Проблема при установке vmware от Nao

Re: Проблема при установке vmware

Вот что написано выше места с "ошибкой": /* * compat_exit() provides an access to the exit() function. It must * be named compat_exit(), as exit() (with different signature) is * provided by x86-64, arm and other (but not by i386). */ Исходя из этого и того что ты мне сказал у меня i386 и функции compat_exit у меня нет, а патч посути выглядит так: static inline _syscall1(int, int , int, int);или static inline _syscall1(int, 0 , int, 0);или static inline _syscall1(0, 0 ,0, 0);

в общем виртуальный комп я сделал, но теперь хочу сетку: Would you like to skip networking setup and keep your old settings as they are? (yes/no) [no] y

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config11/vmnet-only' make -C /lib/modules/2.6.22.5-31-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-2.6.22.5-31-obj/i386/default' make -C ../../../linux-2.6.22.5-31 O=../linux-2.6.22.5-31-obj/i386/default modules CC [M] /tmp/vmware-config11/vmnet-only/driver.o CC [M] /tmp/vmware-config11/vmnet-only/hub.o CC [M] /tmp/vmware-config11/vmnet-only/userif.o /tmp/vmware-config11/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’: /tmp/vmware-config11/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘h’ /tmp/vmware-config11/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘nh’ /tmp/vmware-config11/vmnet-only/userif.c:636: error: ‘const struct sk_buff’ has no member named ‘h’ make[4]: *** [/tmp/vmware-config11/vmnet-only/userif.o] Ошибка 1 make[3]: *** [_module_/tmp/vmware-config11/vmnet-only] Ошибка 2 make[2]: *** [modules] Ошибка 2 make[1]: *** [modules] Ошибка 2 make[1]: Leaving directory `/usr/src/linux-2.6.22.5-31-obj/i386/default' make: *** [vmnet.ko] Ошибка 2 make: Leaving directory `/tmp/vmware-config11/vmnet-only' Unable to build the vmnet 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.

ferrum2688 ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.