PDA

View Full Version : trying to reinstall vmware after kernel update... no luck so far.



contraculto
31st October 2007, 03:51 PM
hi all, i just did an update on my fedora 7 yesterday and i got new kernel and everything, but vmware stopped working completely, it just wouldnt show at all. so i decided to remove and reinstall, located the uninstall script, did that, and trying to install again (using the latest vmware server tar.gz) i get to building the kernel module and then it fails:


Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.23.1-10.fc7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-10.fc7-i686'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:80:
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:1657: error: ‘struct mm_struct’ has no member named ‘dumpable’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-10.fc7-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
Unable to build the vmmon module.

and that's it. any ideas on how to fix it? and also, will i have to go trough this every time i update kernel?

pobbz
31st October 2007, 04:13 PM
Hello.

1st of all, I'd recommend using the rpm package instead of the tar package.

Secondly, have you tried applying the vmaware-any-to-any patch from here (http://knihovny.cvut.cz/ftp/pub/vmware/)? Hope that helps.

EDIT: oh, and yes, you need to rebuild the kernel modules every time you change your kernel. Reinstalling vmware, however, shouldn't be necessary.

scottro
31st October 2007, 05:40 PM
Yes, once you upgrade the kernel, you'll usually get a message like vmware is installed but (something, I forget). Please run /usr/bin/vmware-config.pl.

If you do that, you should be alright. (Also, you don't have to re-enter the serial number--during the reconfiguration, it will give messages like your network is already set, leave it? And, do you want to enter a serial number? You can put no, it already has your serial number.

pobbz
31st October 2007, 05:51 PM
Please run /usr/bin/vmware-config.pl.

In this case the guy is, apparently, trying to do just that. And it seems to fail. That's why I'd recommend applying the any-to-any patch.

JN4OldSchool
31st October 2007, 06:04 PM
It's the any-any patch Rod, every time the kernel version changes. See here:

http://forums.fedoraforum.org/forum/showpost.php?p=889853&postcount=2

edit: P.S. dont forget to cd into the vmware file once you extract it.

contraculto
31st October 2007, 06:41 PM
well, i'm actually trying to install vmware over, as i removed it. but let me try this and see what happens...

contraculto
31st October 2007, 06:45 PM
i just tried with the any-any patch and it didn't work... got another error...

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-10.fc7-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

gary1975
31st October 2007, 07:04 PM
I don't think you have the compiler installed.

Open add/remove software and add development tools+libraries and then re-run vmware-config.pl

My vmware is running fine in Fedora 8 with any-any update

contraculto
31st October 2007, 07:27 PM
you mean gcc? it's there. actually vmware worked fine 2 days ago before the kernel update. so i'm kinda lost here.

gary1975
31st October 2007, 07:32 PM
http://www.go2linux.org/vmware-server-on-f7-the-cc1plus-file-missing

gary1975
31st October 2007, 07:33 PM
http://www.go2linux.org/vmware-server-on-f7-the-cc1plus-file-missing

Pasting from the above link.

Installing VMWare server on my new F7, and after running these commands,

yum install libx11-6 libx11-dev libxtst6 xinetd wget

yum install kernel-devel

yum install binutils-doc make manpages-dev autoconf automake1.9 libtool flex bison gdb libc6-dev-amd64 lib64gcc1 gcc-2.95-doc

yum install gcc

I got this error:

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.21-1.3228.fc7-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

which was finally solved installing gcc++ with the following command,

yum install gcc-c++

do not forget to apply the vmware-any-any patch.

contraculto
31st October 2007, 09:05 PM
thanks, that worked like magic. turns out i just needed to install gcc-c++ :)