vmware tools 安装不上,报错/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.c:685: error: too few arguments to
2013-03-04 21:51
573 查看
vmware tools 安装不上,报错
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/backdoor.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/backdoorGcc32.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/bdhandler.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/cpName.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/cpNameLite.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/dentry.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/dir.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/file.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.o
/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.c: In function ‘HgfsInitFileSystem’:
/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.c:685: error: too few arguments to function ‘kmem_cache_create’
make[2]: *** [/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.o] 错误 1
make[1]: *** [_module_/tmp/modconfig-IgPiI7/vmhgfs-only] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
make: *** [vmhgfs.ko] 错误 2
make: Leaving directory `/tmp/modconfig-IgPiI7/vmhgfs-only'
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
解决:请将vmware tools的安装文件解压到用户目录下(~/vmware-tools-distrib)。
首先进入此目录:
$ cd ~/vmware-tools-distrib
把将要更改的文件分离出来备份:
$ mv lib/modules/source/vmhgfs.tar vmhgfs.tar.orig
解压缩此文件:
$ tar -xvf vmhgfs.tar.orig
编辑文件解压后生成的vmhgfs-only目录中的compat_slab.h:
$ vim vmhgfs-only/compat_slab.h
找到此行:
if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
更改为:
if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
就是把小于(<)改为小于等于(<=).
现在我们已基本完成了,仅需重新打包压缩更改的文件夹,并把它拷贝回去(lib/modules/source/vmhgfs.tar):
tar -cvf lib/modules/source/vmhgfs.tar vmhgfs-only
重新设置vmware tools:
$ vmware-config-tools.pl
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/backdoor.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/backdoorGcc32.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/bdhandler.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/cpName.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/cpNameLite.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/dentry.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/dir.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/file.o
CC [M] /tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.o
/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.c: In function ‘HgfsInitFileSystem’:
/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.c:685: error: too few arguments to function ‘kmem_cache_create’
make[2]: *** [/tmp/modconfig-IgPiI7/vmhgfs-only/filesystem.o] 错误 1
make[1]: *** [_module_/tmp/modconfig-IgPiI7/vmhgfs-only] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
make: *** [vmhgfs.ko] 错误 2
make: Leaving directory `/tmp/modconfig-IgPiI7/vmhgfs-only'
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
解决:请将vmware tools的安装文件解压到用户目录下(~/vmware-tools-distrib)。
首先进入此目录:
$ cd ~/vmware-tools-distrib
把将要更改的文件分离出来备份:
$ mv lib/modules/source/vmhgfs.tar vmhgfs.tar.orig
解压缩此文件:
$ tar -xvf vmhgfs.tar.orig
编辑文件解压后生成的vmhgfs-only目录中的compat_slab.h:
$ vim vmhgfs-only/compat_slab.h
找到此行:
if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
更改为:
if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
就是把小于(<)改为小于等于(<=).
现在我们已基本完成了,仅需重新打包压缩更改的文件夹,并把它拷贝回去(lib/modules/source/vmhgfs.tar):
tar -cvf lib/modules/source/vmhgfs.tar vmhgfs-only
重新设置vmware tools:
$ vmware-config-tools.pl
相关文章推荐
- nginx-sticky-module-1.1//ngx_http_sticky_misc.c:281:2: error: too few arguments to function
- ADT中通过DDMS导入文件出错ddms transfer error: Read-only file system,Failed to push selection: Read-only file
- 安装PHP sphinx扩展 sphinx-1.1.0/sphinx.c:105:2: error: too few arguments 错误
- [转]ADT中通过DDMS导入文件出错ddms transfer error: Read-only file system,Failed to push selection: Read-only file system
- yaffs2 源码错误 too few arguments to function 'yaffs_flush_file' 2014.08.22
- 安装虚拟机出现“正在进行简易安装时,无法手动启动vmware tools"以及出现解压vmware tools时,Read-only file system
- fuse_trash.c:119: error: too few arguments to function 'hdfsDelete'
- 【经验】VMware Tools安装时出现错误提示:Read-only file system
- 手动编译memcached时遇到memcache.c error: too few arguments to function ‘zend_list_insert’的解决方法
- VMware Tools安装时出现错误提示:Read-only file system
- caffe 与cudnn版本不匹配 ./include/caffe/util/cudnn.hpp:127:41: error: too few arguments to function
- centos 7安装vmware-too cannot mkdir Read-only file system
- cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor
- bug:error:too few arguments to function ‘fopen’
- Errorwriting to file——msi安装失败,解决方案
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- 从C调用Python脚本unableto load the file system codec ImportError错误解决方法
- VMware虚拟机安装WinXP出现错误output error file to the following location A:\GHOSTERR.TXT