热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

VMwaretools出错WhatisthelocationofthedirectoryofCh

首先要确保能够联网才能进行1、2、1、一定要先安装build-essential编译软件,否则不能够顺利安装命令:sudoapt-getinstallbuild-essential2、要安装linux-headers包,这个包要在配置VMware-tools之前装,即可以在安装VMware-tools前装,或者在成功安

首先要确保能够联网才能进行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不是在后台隐藏运行的,启动后不要关闭)。


推荐阅读
  • 在编译BSP包过程中,遇到了一个与 'gets' 函数相关的编译错误。该问题通常发生在较新的编译环境中,由于 'gets' 函数已被弃用并视为安全漏洞。本文将详细介绍如何通过修改源代码和配置文件来解决这一问题。 ... [详细]
  • Docker的安全基准
    nsitionalENhttp:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd ... [详细]
  • 本文介绍如何在Linux Mint系统上搭建Rust开发环境,包括安装IntelliJ IDEA、Rust工具链及必要的插件。通过详细步骤,帮助开发者快速上手。 ... [详细]
  • 在创建新的Android项目时,您可能会遇到aapt错误,提示无法打开libstdc++.so.6共享对象文件。本文将探讨该问题的原因及解决方案。 ... [详细]
  • 本文详细介绍了如何在预装Ubuntu系统的笔记本电脑上安装Windows 7。针对没有光驱的情况,提供了通过USB安装的具体方法,并解决了分区、驱动器无法识别等问题。 ... [详细]
  • 嵌入式开发环境搭建与文件传输指南
    本文详细介绍了如何为嵌入式应用开发搭建必要的软硬件环境,并提供了通过串口和网线两种方式将文件传输到开发板的具体步骤。适合Linux开发初学者参考。 ... [详细]
  • 2012年7月30日,语言岛团队宣布其智能记单词软件V0.3.4.554版本正式开源。该版本不仅支持跨平台使用,还引入了多项创新功能,旨在帮助用户更高效地记忆单词。 ... [详细]
  • 本文详细介绍了如何在Ubuntu的Enlightenment (E17) 桌面环境中管理和优化桌面图标及根菜单。通过本文,您将了解这些功能的作用及其配置方法。 ... [详细]
  • 本文探讨了Web开发与游戏开发之间的主要区别,旨在帮助开发者更好地理解两种开发领域的特性和需求。文章基于作者的实际经验和网络资料整理而成。 ... [详细]
  • PHP 时间与日期工具类:星座、干支、生肖的实现
    本文介绍了一个PHP时间与日期工具类,涵盖了时区设置、有效日期和时间检查、星座、干支、生肖计算等功能。该工具类特别适用于需要处理中国农历及西方星座的应用场景。 ... [详细]
  • 选择适合生产环境的Docker存储驱动
    本文旨在探讨如何在生产环境中选择合适的Docker存储驱动,并详细介绍不同Linux发行版下的配置方法。通过参考官方文档和兼容性矩阵,提供实用的操作指南。 ... [详细]
  • 云计算的优势与应用场景
    本文详细探讨了云计算为企业和个人带来的多种优势,包括成本节约、安全性提升、灵活性增强等。同时介绍了云计算的五大核心特点,并结合实际案例进行分析。 ... [详细]
  • 远程过程调用(RPC)是一种允许客户端通过网络请求服务器执行特定功能的技术。它简化了分布式系统的交互,使开发者可以像调用本地函数一样调用远程服务,并获得返回结果。本文将深入探讨RPC的工作原理、发展历程及其在现代技术中的应用。 ... [详细]
  • 本文深入探讨了UNIX/Linux系统中的进程间通信(IPC)机制,包括消息传递、同步和共享内存等。详细介绍了管道(Pipe)、有名管道(FIFO)、Posix和System V消息队列、互斥锁与条件变量、读写锁、信号量以及共享内存的使用方法和应用场景。 ... [详细]
  • NFS(Network File System)即网络文件系统,是一种分布式文件系统协议,主要用于Unix和类Unix系统之间的文件共享。本文详细介绍NFS的配置文件/etc/exports和相关服务配置,帮助读者理解如何在Linux环境中配置NFS客户端。 ... [详细]
author-avatar
采蘑菇的雨天戴草帽_412_715
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有