虚拟机上ubuntu 9.04 vmtools 的安装

来源:互联网 发布:fastboot的软件 编辑:程序博客网 时间:2024/05/22 00:32

这两天,用Vmware装了个ubuntu 9.04,在装Vmware-Tools的时候遇到一些问题!

 

用Vmware装ubuntu 9.04,这很容易,因为以前用它装过ubuntu 7.10的,所以这一部很顺利。

 

因为一开始我的Vmware用的是5.5.1版本的,因此,装Vmware-Tools的时候出现了问题:

   What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

不论怎么输入路径,也不管使用任何办法都卡在这一步上。搜索网上资料,也没有可介绍的!

 

后面怀疑是不是Vmware版本太低了,因为搜索资料时,都在说Vmware6.5的问题!于是连夜下了

个6.5.2版本的Vmware装上。今天早上终于安装成功了。这里说下,网上大都在说用Vmware6.5安装时会现两个问题:一个是GCC引起的问题,另一个是page.c引起的问题。我只碰到了前者!如下:

到编译模块的时候,如果出现类似“不支持gcc 版本4.3.3”字样,则是因为Ubuntu为中文环境的缘故,打开bin/vmware-config-tools.pl,在3969行处发现其中有这么一段脚本:
  if ($gcc_version =~ /^gcc version (egcs-)?(/d+/./d+(/./d+)*)/) {
    return $2;
  } else {
    print wrap('Your compiler "' . $gHelper{'gcc'} . '" version "' .
           $gcc_version . '" is not supported ' .
           'by this version of ' . vmware_product_name() . '.' .
           "/n/n", 0);
    return 'no';
  }

把if ($gcc_version =~ /^gcc version (egcs-)?(/d+/./d+(/./d+)*)/) {
改为

if ($gcc_version =~ /^gcc version (egcs-)?(/d+/./d+(/./d+)*)/
||$gcc_version =~ /^gcc 版本 (egcs-)?(/d+/./d+(/./d+)*)/) {

即可。

装好后,鼠标还不是不能自由在XP和ubuntu 9.04中自由切换,这个网上有资料说是要装个xserver-

xorg-input-vmmouse,但我用sudo apt-get install xserver-xorg-input-vmmouse命令时,提示没有找到相应的软件包。当然这个问题简单,是没有相应的源。

找了网上常用的源,添加如下源:

#中国台湾大学更新服务器(推荐网通、电信用户使用,很稳定的源):

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
deb-src
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
deb
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
deb
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
deb
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
deb-src
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
deb
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src
http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main restricted universe multiverse

添加后,用命令apt-get update更新下源,这可能需要花点时间。再次执行sudo apt-get install

xserver-xorg-input-vmmouse命令,一切都OK!可以正常使用了!

说明:安装网上的软件包和更新源时,需要使Vmvare下的ubuntu 9.04可以上外网,可以参考文

章:Ubuntu9.04 在Vmvare6.5下的上网设置

原创粉丝点击