vmware workstation 5.5.3在linux 2.6.21.1 kernel下安装错误
2007-05-24 18:09
274 查看
vmware workstation 5.5.3在linux 2.6.21.1 kernel下安装错误,错误如下:
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.21.1-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.21'
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’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.21'
make: *** [vmmon.ko] 错误 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.
这是vmware的vmmon模块中的compat_kernel.h的头文件的一个定义造成的。修改方法如下:
在你的vmware的安装目录:
cd vmware-distrib/lib/modules/source
tar xvf vmmon.tar
vi vmmon-only/include/compat_kernel.h
跳到第20行
#define __NR_compat_exit __NR_exit
static inline _syscall1(int, compat_exit, int, exit_code);
修改成:
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 19)
#define __NR_compat_exit __NR_exit
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
然后存盘退出。
tar cvf vmmon.tar vmmon-only
然后再到安装目录执行vmware-install.pl重新安装。一切OK。
本文参考于网上类似文章,因为文章很多,搞不清楚哪个是原创,所以未提供链接
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.21.1-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.21'
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’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.21'
make: *** [vmmon.ko] 错误 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.
这是vmware的vmmon模块中的compat_kernel.h的头文件的一个定义造成的。修改方法如下:
在你的vmware的安装目录:
cd vmware-distrib/lib/modules/source
tar xvf vmmon.tar
vi vmmon-only/include/compat_kernel.h
跳到第20行
#define __NR_compat_exit __NR_exit
static inline _syscall1(int, compat_exit, int, exit_code);
修改成:
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 19)
#define __NR_compat_exit __NR_exit
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
然后存盘退出。
tar cvf vmmon.tar vmmon-only
然后再到安装目录执行vmware-install.pl重新安装。一切OK。
本文参考于网上类似文章,因为文章很多,搞不清楚哪个是原创,所以未提供链接
相关文章推荐
- vbox安装,启动错误:Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- linux下jdk的卸载,安装(中间有个小错误,解决了)(九)
- LINUX 安装错误笔记ins_ctx.mk
- linux问题记录:源码安装python遇到make: *** [libinstall] Error 1错误
- linux/centos安装nginx常见错误及解决办法
- linux 部署ElasticSearch 5.x 安装部署常见错误或问题
- linux/ubuntu下安装nginx时./configure后出现几种错误的解决方法
- linux下安装swoole扩展及加载错误解决方案
- Linux下安装httpd,apr,apr-util,pcre错误解决
- linux下安装qt-x11-opensource-src-4.5.3出现缺少qconfig.h错误解决办法
- 安装数据库遇到错误 C [ld-linux-x86-64.so.2+0x14d70]
- linux 安装apache 错误:configure: error: /bin/sh build/config.sub failed解决办法
- arm-linux-gcc 安装错误 not a valid identifier
- Linux安装完mysql后提示错误无法登陆mysql怎么办?
- linux下安装kscope1.9.4.tar.gz出现的错误解决办法
- linux/centos安装nginx常见错误及解决办法【make错误,需要yum -y install openssl openssl-devel或者自己下载然后重新./configure】
- 无法在发生错误时创建会话,请检查 PHP 或网站服务器日志,并正确配置 PHP 安装(win+linux)