ubuntu下安装VMware tools 出现What is the location of the directory of C header files that

首先要确保能够联网才能进行1、2、

1、一定要先安装 build-essential 编译软件,否则不能够顺利安装 

命令:sudo apt-get install build-essential 
2、要安装linux-headers 包,这个包要在配置VMware-tools之前装,即可以在安装VMware-tools前装,或者在成功安装了VMware-tools之后配置之前装,否则会提示找不到 C header files,要求你指定路径。可是这个linux-headers包要和你下载的ubuntu版本匹配,可以用命令:uname -a 来查看你安装的版本, 
比如我的查看结果是:2.6.35-25-generic,那么接下来就运行命令: 
sudo apt-get install linux-headers-2.6.35-25-generic 
安装结果就是和我运行的内核匹配的包了。 

3、此时如果按照一般方法运行$ sudo ./vmware-install.pl 安装VMware-tools将遇到问题:
    What is the location of the directory of C header files that match your running  kernel? [/usr/src/linux/include]
    如果直接回车,会显示 The path "/usr/src/linux/include"  is not an existing directory.

这个是 VMware Tools 无法找到内核的头文件,或者内核的头文件和当前的内核不相符,因为从 Ubuntu 10.10 开始 header 文件的路径改变了

       解决方法# cd  /usr/src/linux-headers-2.6.35-25-generic/include
       # cp    generated/utsrelease.h  linux/
       # cp    generated/autoconf.h  linux/

       提示:这里的 2.6.35-25 是 Ubuntu 10.10 的默认内核版本号,不同版本系统或曾升级过内核的会有所不同。


接下来按照一般方法安装tool:

1、点击VMware菜单的-VM-Install VMware Tools 

这时,在Ubuntu下会自动加载Linux版的VMware Tools的安装光盘镜像。你会看到虚拟机的桌面上出现了一个名为VMware Tools的光盘图标,并且被自动打开。 

其中包括VMwareTools-xxx-i386.rpm和VMwareTools- xxx.tar.gz两个文件。 

如果你双击那个 rpm 文件,会提示说不支持的软件包,因为 rpm 是为 RedHat 准备的安装包,我们需要的是 .tar.gz 那个。 

2、把 .tar.gz 文件拷贝而到桌面,右键菜单-解压缩到此处。会自动解压为一个 vmware-tools-distrib 目录。 

打开终端(系统的应用程序菜单-附件-终端) 

3、然后在终端里面执行以下命令行: 

$ cd Desktop(要是中文的就是 $ cd 桌面) 

$ cd vmware-tools-distrib 

$ sudo ./vmware-install.pl 



中途会再次出现  What is the location of the directory of C header files that match your running  kernel? [/usr/src/linux/include] 

在这里手动输入:/usr/src/linux-headers-2.6.35-25-generic/include,然后一直回车直至安装完成。


部分安装记录:

sudo ./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] 

What is the directory that contains the init scripts? 
[/etc/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] 

The path "/usr/lib/vmware-tools" does not exist currently. This program is 
going to create it, including needed parent directories. Is this what you want?
[yes] 

yes

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 
The path "yes" is a relative path. Please enter an absolute path.

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 6.0.2 build-59824 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] 


Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:                                      done
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: warning: script 'dmesg' missing LSB tags and overrides
insserv: warning: script 'procps' missing LSB tags and overrides
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
insserv: warning: script 'sreadahead' missing LSB tags and overrides
insserv: warning: script 'udev-finish' missing LSB tags and overrides
insserv: warning: script 'usplash' missing LSB tags and overrides
insserv: warning: script 'network-manager' missing LSB tags and overrides
insserv: warning: script 'acpid' missing LSB tags and overrides
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
insserv: warning: script 'udev' missing LSB tags and overrides
insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
insserv: warning: script 'ufw' missing LSB tags and overrides
insserv: warning: script 'hal' missing LSB tags and overrides
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `networking' overwrites defaults (empty).
insserv: warning: script 'apport' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
insserv: warning: script 'acpi-support' missing LSB tags and overrides
insserv: warning: script 'dbus' missing LSB tags and overrides
insserv: warning: script 'atd' missing LSB tags and overrides
insserv: warning: script 'hwclock' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
insserv: warning: script 'anacron' missing LSB tags and overrides
insserv: warning: script 'gdm' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
insserv: warning: script 'rsyslog-kmsg' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and pulseaudio if stopped
insserv: loop involving service pulseaudio at depth 3
insserv: loop involving service rsyslog at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop between service pulseaudio and rsyslog if stopped
insserv: exiting without changing boot order!
Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules for VMware Tools is suitable for your 
running kernel. Do you want this program to try to build the vmmemctl module 
for your system (you need to have a C compiler installed on your system)? 
[yes] 

sudo ./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] 

What is the directory that contains the init scripts? 
[/etc/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] 

The path "/usr/lib/vmware-tools" does not exist currently. This program is 
going to create it, including needed parent directories. Is this what you want?
[yes] 

yes

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 
The path "yes" is a relative path. Please enter an absolute path.

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 6.0.2 build-59824 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] 


Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:                                      done
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: warning: script 'dmesg' missing LSB tags and overrides
insserv: warning: script 'procps' missing LSB tags and overrides
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
insserv: warning: script 'sreadahead' missing LSB tags and overrides
insserv: warning: script 'udev-finish' missing LSB tags and overrides
insserv: warning: script 'usplash' missing LSB tags and overrides
insserv: warning: script 'network-manager' missing LSB tags and overrides
insserv: warning: script 'acpid' missing LSB tags and overrides
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
insserv: warning: script 'udev' missing LSB tags and overrides
insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
insserv: warning: script 'ufw' missing LSB tags and overrides
insserv: warning: script 'hal' missing LSB tags and overrides
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `networking' overwrites defaults (empty).
insserv: warning: script 'apport' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
insserv: warning: script 'acpi-support' missing LSB tags and overrides
insserv: warning: script 'dbus' missing LSB tags and overrides
insserv: warning: script 'atd' missing LSB tags and overrides
insserv: warning: script 'hwclock' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
insserv: warning: script 'anacron' missing LSB tags and overrides
insserv: warning: script 'gdm' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
insserv: warning: script 'rsyslog-kmsg' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and pulseaudio if stopped
insserv: loop involving service pulseaudio at depth 3
insserv: loop involving service rsyslog at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop between service pulseaudio and rsyslog if stopped
insserv: exiting without changing boot order!
Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules for VMware Tools is suitable for your 
running kernel. Do you want this program to try to build the vmmemctl 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?[/usr/src/linux/include]

在此处输入 /usr/src/linux-headers-2.6.35-25-generic/include  回车   接下去一路回车


Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config0/vmmemctl-only'
make -C /lib/modules/2.6.31-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /tmp/vmware-config0/vmmemctl-only/os.o
In file included from /tmp/vmware-config0/vmmemctl-only/os.c:40:
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config0/vmmemctl-only/os.c:40:
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:70: note: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config0/vmmemctl-only/os.c: In function ‘os_init’:
/tmp/vmware-config0/vmmemctl-only/os.c:567: error: ‘struct proc_dir_entry’ has no member named ‘get_info’
make[2]: *** [/tmp/vmware-config0/vmmemctl-only/os.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config0/vmmemctl-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [vmmemctl.ko] 错误 2
make:离开目录“/tmp/vmware-config0/vmmemctl-only”
Unable to build the vmmemctl module.

The memory manager driver (vmmemctl module) is used by VMware host software to 
efficiently reclaim memory from a virtual machine.
If the driver is not available, VMware host software may instead need to swap 
guest memory to disk, which may reduce performance.
The rest of the software provided by VMware Tools is designed to work 
independently of this feature.
If you want the memory management 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 ] 

Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your 
running kernel. Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes] 

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config1/vmhgfs-only'
make -C /lib/modules/2.6.31-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoor.o
In file included from /tmp/vmware-config1/vmhgfs-only/backdoor.h:15,
from /tmp/vmware-config1/vmhgfs-only/backdoor.c:26:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:104:7: warning: "__FreeBSD__" is not defined
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoorGcc32.o
In file included from /tmp/vmware-config1/vmhgfs-only/backdoor.h:15,
from /tmp/vmware-config1/vmhgfs-only/backdoorGcc32.c:32:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:104:7: warning: "__FreeBSD__" is not defined
CC [M] /tmp/vmware-config1/vmhgfs-only/bdhandler.o
/tmp/vmware-config1/vmhgfs-only/bdhandler.c:15:27: error: asm/semaphore.h: 没有该文件或目录
In file included from /tmp/vmware-config1/vmhgfs-only/dbllnklst.h:14,
from /tmp/vmware-config1/vmhgfs-only/vmrpc.h:17,
from /tmp/vmware-config1/vmhgfs-only/hgfsBd.h:14,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:29:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:104:7: warning: "__FreeBSD__" is not defined
In file included from /tmp/vmware-config1/vmhgfs-only/dbllnklst.h:14,
from /tmp/vmware-config1/vmhgfs-only/vmrpc.h:17,
from /tmp/vmware-config1/vmhgfs-only/hgfsBd.h:14,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:29:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:170: error: conflicting types for ‘uintptr_t’
include/linux/types.h:41: note: previous declaration of ‘uintptr_t’ was here
In file included from /tmp/vmware-config1/vmhgfs-only/request.h:21,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:34:
/tmp/vmware-config1/vmhgfs-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config1/vmhgfs-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config1/vmhgfs-only/request.h:21,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:34:
/tmp/vmware-config1/vmhgfs-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:70: note: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config1/vmhgfs-only/bdhandler.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmhgfs-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [vmhgfs.ko] 错误 2
make:离开目录“/tmp/vmware-config1/vmhgfs-only”
Unable to build the vmhgfs module.

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 ] 

pcnet32                32644 0 
Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

None of the pre-built vmxnet modules for VMware Tools is suitable for your 
running kernel. Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes] 

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config2/vmxnet-only'
make -C /lib/modules/2.6.31-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /tmp/vmware-config2/vmxnet-only/vmxnet.o
In file included from /tmp/vmware-config2/vmxnet-only/vmxnet.c:37:
/tmp/vmware-config2/vmxnet-only/vm_basic_types.h:104:7: warning: "__FreeBSD__" is not defined
In file included from /tmp/vmware-config2/vmxnet-only/vmxnet.c:37:
/tmp/vmware-config2/vmxnet-only/vm_basic_types.h:170: error: conflicting types for ‘uintptr_t’
include/linux/types.h:41: note: previous declaration of ‘uintptr_t’ was here
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_probe_device’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:551: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:670: error: ‘struct net_device’ has no member named ‘open’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:671: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:672: error: ‘struct net_device’ has no member named ‘stop’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:673: error: ‘struct net_device’ has no member named ‘get_stats’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:674: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:676: error: ‘struct net_device’ has no member named ‘tx_timeout’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:680: error: ‘struct net_device’ has no member named ‘poll_controller’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:684: error: ‘struct net_device’ has no member named ‘set_mac_address’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:685: error: ‘struct net_device’ has no member named ‘do_ioctl’
/tmp/vmware-config2/vmxnet-only/vmxnet.c:687: error: implicit declaration of function ‘SET_MODULE_OWNER’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_remove_device’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:737: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_init_ring’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:803: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_open’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:887: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘check_tx_queue’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1141: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_tx’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1204: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_rx’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1593: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_interrupt’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1692: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_close’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1774: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_load_multicast’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1851: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_set_multicast_list’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1912: error: ‘struct net_device’ has no member named ‘priv’
/tmp/vmware-config2/vmxnet-only/vmxnet.c: In function ‘vmxnet_get_stats’:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:1992: error: ‘struct net_device’ has no member named ‘priv’
make[2]: *** [/tmp/vmware-config2/vmxnet-only/vmxnet.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config2/vmxnet-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [vmxnet.ko] 错误 2
make:离开目录“/tmp/vmware-config2/vmxnet-only”
Unable to build the vmxnet module.

The fast network device driver (vmxnet module) is used only for our fast 
networking interface. The rest of the software provided by VMware Tools is 
designed to work independently of this feature.
If you wish to have the fast network driver enabled, 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 ] 

Trying to find a suitable vmblock module for your running kernel.

None of the pre-built vmblock modules for VMware Tools is suitable for your 
running kernel. Do you want this program to try to build the vmblock module 
for your system (you need to have a C compiler installed on your system)? 
[yes] 

Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config3/vmblock-only'
make -C /lib/modules/2.6.31-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /tmp/vmware-config3/vmblock-only/linux/block.o
In file included from /tmp/vmware-config3/vmblock-only/linux/os.h:21,
from /tmp/vmware-config3/vmblock-only/linux/block.c:12:
/tmp/vmware-config3/vmblock-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config3/vmblock-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config3/vmblock-only/linux/os.h:21,
from /tmp/vmware-config3/vmblock-only/linux/block.c:12:
/tmp/vmware-config3/vmblock-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:70: note: previous declaration of ‘poll_initwait’ was here
In file included from /tmp/vmware-config3/vmblock-only/linux/vmblockInt.h:26,
from /tmp/vmware-config3/vmblock-only/linux/block.c:15:
/tmp/vmware-config3/vmblock-only/./include/vm_basic_types.h:104:7: warning: "__FreeBSD__" is not defined
In file included from /tmp/vmware-config3/vmblock-only/linux/vmblockInt.h:26,
from /tmp/vmware-config3/vmblock-only/linux/block.c:15:
/tmp/vmware-config3/vmblock-only/./include/vm_basic_types.h:170: error: conflicting types for ‘uintptr_t’
include/linux/types.h:41: note: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/tmp/vmware-config3/vmblock-only/linux/block.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config3/vmblock-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [vmblock.ko] 错误 2
make:离开目录“/tmp/vmware-config3/vmblock-only”
Unable to build the vmblock module.

The vmblock module enables dragging or copying files from within a host and 
dropping or pasting them onto your guest (host to guest drag and drop and file 
copy/paste). The rest of the software provided by VMware Tools is designed to 
work independently of this feature (including guest to host drag and drop and 
file copy/paste).

If you would like the host to guest drag and drop and file copy/paste features,
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 ] 

[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service 
provides a new communication capability with the Host, primarily for 
development at the moment. Would you like to enable this feature? [no] 



Detected X.org version 0.0.0.



No drivers for X.org version: 0.0.0.



The configuration file /etc/X11/xorg.conf can not be found. Do you want to 
create a new one? (yes/no) [yes] 


Please choose one of the following display sizes that X will start with (1 - 
15):

[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x900"
[10] "1400x1050"
[11] "1440x900"
[12] "1680x1050"
[13] "1600x1200"
[14] "1920x1200"
[15] "2364x1773"
Please enter a number between 1 and 15:

[2] 3

Starting VMware Tools services in the virtual machine:
Switching to guest configuration:                                   done
DMA setup:                                                          done
Guest operating system daemon:                                      done

The configuration of VMware Tools 6.0.2 build-59824 for Linux for this running 
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

You can now run VMware Tools by invoking the following command: 
"/usr/bin/vmware-toolbox" during an X server session.

To make use of the virtual printer, you will need to restart the CUPS service

Enjoy,

--the VMware team


4、然后剩下的就没什么了,跟以前的基本一致,一路回车,一直到提示选择分辨率,再到提示“Enjoy, — the VMware team”就好了。最后就是在“首选项 - 启动应用程序”里把vmware-toolbox添加进去就可以了。

重新执行安装命令安装完VMWare Tools,重启,VMWare Tools是不会随系统启动的,需要将其添加到“启动程序组”中,不过Ubuntu 10.10的界面有点变化,没有了“首选项”里没有了“会话”,而是在“启动应用程序”里添加一个新程序,“命令”里填写/usr/bin/vmware-toolbox即可(不过VMWare-Toolbox不是在后台隐藏运行的,启动后不要关闭)。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值