[root@zhaozhichao vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
The installation of VMware Tools 8.4.5 build-324285 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
Initializing...
Making sure services for VMware Tools are stopped.
Stopping vmware-tools (via systemctl): [确定]
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=vmmemctl to override.
Before you can compile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]
Searching for a valid kernel header path...
Detected the kernel headers of the running kernel at
"/lib/modules/2.6.38.6-26.rc1.fc15.i686/build/include".
The path "/lib/modules/2.6.38.6-26.rc1.fc15.i686/build/include" appears to be a
valid path to the kernel headers of the running kernel.
Would you like to change it? [no] y
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.38.6-26.rc1.fc15.i686/build/include] /usr/src/kernels/2.6.38.6-26.rc1.fc15.i686/include
The path "/usr/src/kernels/2.6.38.6-26.rc1.fc15.i686/include" appears to be a
valid path to the kernel headers of the running kernel.
Would you like to change it? [no]
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmhgfs-only”
make -C /usr/src/kernels/2.6.38.6-26.rc1.fc15.i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/2.6.38.6-26.rc1.fc15.i686”
CC [M] /tmp/vmware-root/modules/vmhgfs-only/message.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/dir.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/rpcout.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/filesystem.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpName.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/link.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/request.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/module.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/stubs.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/hgfsUtil.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/messageBackdoor.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/tcp.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/file.o
/tmp/vmware-root/modules/vmhgfs-only/file.c: 在函数‘HgfsOpen’中:
/tmp/vmware-root/modules/vmhgfs-only/file.c:537:19: 警告:变量‘si’被设定但未被使用 [-Wunused-but-set-variable]
/tmp/vmware-root/modules/vmhgfs-only/file.c: 在函数‘HgfsRelease’中:
/tmp/vmware-root/modules/vmhgfs-only/file.c:1009:19: 警告:变量‘si’被设定但未被使用 [-Wunused-but-set-variable]
CC [M] /tmp/vmware-root/modules/vmhgfs-only/transport.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/inode.o
/tmp/vmware-root/modules/vmhgfs-only/inode.c:159:4: 警告:从不兼容的指针类型初始化 [默认启用]
/tmp/vmware-root/modules/vmhgfs-only/inode.c:159:4: 警告:(在‘HgfsDirInodeOperations.permission’的初始化附近) [默认启用]
/tmp/vmware-root/modules/vmhgfs-only/inode.c:173:4: 警告:从不兼容的指针类型初始化 [默认启用]
/tmp/vmware-root/modules/vmhgfs-only/inode.c:173:4: 警告:(在‘HgfsFileInodeOperations.permission’的初始化附近) [默认启用]
/tmp/vmware-root/modules/vmhgfs-only/inode.c: 在函数‘HgfsPermission’中:
/tmp/vmware-root/modules/vmhgfs-only/inode.c:1867:10: 警告:传递‘atomic_read’的第 1 个参数时在不兼容的指针类型间转换 [默认启用]
/usr/src/kernels/2.6.38.6-26.rc1.fc15.i686/arch/x86/include/asm/atomic.h:23:19: 附注:需要类型‘const struct atomic_t *’,但实参的类型为‘unsigned int *’
CC [M] /tmp/vmware-root/modules/vmhgfs-only/backdoorGcc32.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/super.o
/tmp/vmware-root/modules/vmhgfs-only/super.c:73:4: 错误:初始值设定项里有未知的字段‘clear_inode’
make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/super.o] 错误 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmhgfs-only] 错误 2
make[1]: 离开目录“/usr/src/kernels/2.6.38.6-26.rc1.fc15.i686”
make: *** [vmhgfs.ko] 错误 2
make: 离开目录“/tmp/vmware-root/modules/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.
[ Press Enter key to continue ]
我的内核是[root@zhaozhichao ~]# rpm -qa |grep kernel
kernel-headers-2.6.38.6-26.rc1.fc15.i686
abrt-addon-kerneloops-2.0.3-4.fc15.i686
kernel-devel-2.6.38.6-26.rc1.fc15.i686
kernel-2.6.38.6-26.rc1.fc15.i686
mware版本是7.1.3
zzc89522 于 2011-11-20 14:14:16发表:
解决了,vmware版本的问题升级到vmware8 就可以了