ubuntukylin安裝vmware tools编译时出错

Using 2.6.x kernel build system.
make:进入目录’/tmp/modconfig-W024vp/vmci-only’
/usr/bin/make -C /lib/modules/3.8.0-19-generic/build/include/… SUBDIRS=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: 正在进入目录 /usr/src/linux-headers-3.8.0-19-generic' CC [M] /tmp/modconfig-W024vp/vmci-only/linux/driver.o CC [M] /tmp/modconfig-W024vp/vmci-only/linux/vmciKernelIf.o /tmp/modconfig-W024vp/vmci-only/linux/driver.c:127:4: 错误: 隐式声明函数‘__devexit_p’ [-Werror=implicit-function-declaration] /tmp/modconfig-W024vp/vmci-only/linux/driver.c:127:4: 错误: 初始值设定元素不是常量 /tmp/modconfig-W024vp/vmci-only/linux/driver.c:127:4: 错误: (在‘vmci_driver.remove’的初始化附近) /tmp/modconfig-W024vp/vmci-only/linux/driver.c:1754:1: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_probe_device’ /tmp/modconfig-W024vp/vmci-only/linux/driver.c:1982:1: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_remove_device’ /tmp/modconfig-W024vp/vmci-only/linux/driver.c:119:12: 警告: ‘vmci_probe_device’使用过但从未定义 [默认启用] /tmp/modconfig-W024vp/vmci-only/linux/driver.c:121:13: 警告: ‘vmci_remove_device’使用过但从未定义 [默认启用] /tmp/modconfig-W024vp/vmci-only/linux/driver.c:2063:1: 警告: ‘vmci_interrupt’定义后未使用 [-Wunused-function] 义后未使用 [-Wunused-function] /tmp/modconfig-W024vp/vmci-only/linux/driver.c:2137:1: 警告: ‘vmci_interrupt_bm’定义后未使用 [-Wunused-function] /tmp/modconfig-W024vp/vmci-only/linux/driver.c:1717:1: 警告: ‘vmci_enable_msix’定义后未使用 [-Wunused-function] cc1: some warnings being treated as errors make[2]: *** [/tmp/modconfig-W024vp/vmci-only/linux/driver.o] 错误 1 make[2]: *** 正在等待未完成的任务.... make[1]: *** [_module_/tmp/modconfig-W024vp/vmci-only] 错误 2 make[1]:正在离开目录 /usr/src/linux-headers-3.8.0-19-generic’
make: *** [vmci.ko] 错误 2
make:离开目录“/tmp/modconfig-W024vp/vmci-only”

The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and
host. The rest of this software provided by VMware Tools is designed to work
independently of this feature. If you wish to have the VSOCK 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.

之前在fedora17上遇到过安装不上vmware-tools情况,忘记提示什么错误的,但也是linux-header问题,
安装了perl包,gcc,内核头路径位置不正确,希望能够帮到您。

在ubuntu上安装vmware-tools也有问题。

Using 2.6.x kernel build system.

看第一句打印信息,估计你这个版本的vmware是基于2.6内核的,现在UbuntuKylin的内核为3.8版本的,报错应该是相关的内核api改变了

楼主可以确认下,找下最新的vmware,祝好运