Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101971737
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-14 10:30:15

作者: yreqab  出自:
今天在VMware Workstation 6.0中安装Ubuntu 8.04 server,安装过程并不难,按照提示做就行了。基于测试的心态安装了提供的所有服务如LAMP、DNS Server等等。安装后在安装过程中新建的普通用户可以登录,root就不可以了(记得密码没有输错啊)。没办法只好进入单用户模式下重新设置root密码才可以管理ubuntu!以前好像也遇到过,不知是自己弄错了还是ubuntu故意这样弄的,装其他linux(除debain外)系统没遇到这种情况。

生成快照之后开始安装vmware tools,安装过程一点都不顺利。

一、执行vmware-install.pl时出现报无法编译C文件的错误,server版本却没有安装gcc,没办法,只好边参考帮助文档边操作了,使用apt-get install gcc成功安装gcc。之后又出现

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

这一步是让你指定c头文件所在的位置,在/usr/src下并没有linux头文件:

1、用apt-get install linux-headers-2.6.24-16-server获取对应版本;

2、在/usr/src目录下新建一个linux的软链接,执行ln -s linux-headers-2.6.24-16-server linux,问题就可以解决了。

二、执行vmware-config.pl无法顺利通过配置,出现了如下的报错:

/tmp/vmware-config18/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config18/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config18/vmmemctl-only/os.c:40:
/tmp/vmware-config18/vmmemctl-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config18/vmmemctl-only/os.o] Error 1
make[1]: *** _module_/tmp/vmware-config18/vmmemctl-only Error 2
make: *** Error 2
make: Leaving directory `/tmp/vmware-config18/vmmemctl-only'
Unable to build the vmmemctl module.

后面还出现了无法build vmhgfs等情况。

解决方法:
1、下载open-vm-tools:  ,这个是已经编译的版本,只有编译过的版本才能用于接下来的操作。

2、解压该文件,进入modules/linux目录,将vmxnet重命名为vmxnet-only,其他也改为如对应的xxx-only。分别执行tar -cf xxx.tar xxx-only;

3、将xxx.tar 都复制到 /usr/lib/vmware-tools/modules/source,替换原来的文件。

4、成功编译通过。
阅读(357) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~