现在的位置: 首页 > 综合 > 正文

VMware tools 安装

2017年11月19日 ⁄ 综合 ⁄ 共 1344字 ⁄ 字号 评论关闭

将VMwareTools-6.0.0-45731.tar.gz 复制到根目录的文件夹下(可以新建一个,比如test文件夹,安装完成之后就可以删除了),解压缩,直接对着这个压缩包按右键选择“解压缩到子文件夹中”就可以了。

或者使用命令方式解压缩,如下

解压的方法使用tar命令:

[root@localhost 123]#tar xvzf VMwareTools-6.0.0-45731.tar.gz

打开终端,进入刚才新建的文件夹

我新建的文件夹名字是test

[root@localhost /]# cd test

查看文件夹里面的文件[root@localhost test]# ls

VMwareTools-6.0.0-45731.tar.gz     vmware-tools-distrib

 其中 vmware-tools-distrib 为 VMwareTools-6.0.0-45731.tar.gz 解压后的文件夹。

[root@localhost test]# cd vmware-tools-distrib/

[root@localhost vmware-tools-distrib]# ls

bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl

使用[root@localhost vmware-tools-distrib]# ./vmware-install.pl命令

运行 vmware-install.pl

Creating a new VMware Tools installer database using the tar4 format.Installing VMware Tools.  This may take from several minutes to over an hourdepending upon its size.In which directory do you want to install the binary files?[/usr/bin]默认位置就可以了

写好安装路径之后,就一直按着回车就可以了!

安装的过程中可能会出现如下错误:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "GBK"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Please re-run this program as the super user.

Execution aborted.

解决办法:在使用其它的某些命令时(如:mysqlhotcopy)也会也出现类似的提示。
搜索了好一段时间,并试了几次,找到一个解决此问题的简单方法,如下:

vi /root/.bashrc
再最底部加上
export LC_ALL=C
或者直接运行
echo "export LC_ALL=C" >> /root/.bashrc
然后执行一下:
source /root/.bashrc 
好了,重新安装即可。

抱歉!评论已关闭.