美创科技技术社区

注册

 

发新话题 回复该主题

vcenter上装vmware tools [复制链接]

1#

vcenter tools问题:

在客户现场安装vcenter tools的时候出现如下问题:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl

-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory


我先是凭自己判断创建了该目录:

[root@localhost vmware-tools-distrib]# mkdir /usr/bin/perl

再次尝试安装tools依旧报错:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl

-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: Permission denied


网上查询各种解决方法均不成功:

方法1:

查询内核版本:

[root@localhost bin]# uname -r

2.6.32-358.el6.x86_64

使用yum install打内核版本的包

[root@localhost bin]# yum install kernel-devel-2.6.32-358.el6.x86_64

Loaded plugins: fastestmirror, refresh-packagekit

Loading mirror speeds from cached hostfile

Setting up Install Process

Package kernel-devel-2.6.32-358.el6.x86_64 already installed and latest version

Nothing to do

yum发现该包已打,失败


方法2:

打上客户现场虚拟化管理人员提供的包:

rpm -Uvh make*.rpm

rpm -Uvh sysstat*.rpm

rpm -Uvh openmotif*.rpm

rpm -Uvh compat-db*.rpm

rpm -Uvh compat-gcc-34*.rpm

rpm -Uvh compat-gcc-34-c++*.rpm

rpm -Uvh compat-libstdc++-33*.rpm

rpm -Uvh elfutils-libelf*

rpm -Uvh elfutils-libelf-devel*

rpm -Uvh glibc-headers*.rpm

rpm -Uvh glibc-devel*.rpm

rpm -Uvh glibc-common*.rpm

rpm -Uvh glibc*.i686.rpm

rpm -Uvh libXp*.rpm

rpm -Uvh libaio*.rpm

rpm -Uvh libstdc++*.rpm

rpm -Uvh libstdc++-devel*.rpm

rpm -Uvh gcc*.rpm

rpm -Uvh gcc-c++*.rpm

rpm -Uvh unixODBC-devel*.rpm

rpm -Uvh ksh*.rpm


再次尝试:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl

-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: Permission denied

依旧失败。



方法3:

打gcc perl包:

[root@localhost vmware-tools-distrib]#yum install perl gcc kernel-devel

[root@localhost vmware-tools-distrib]#yum upgrade kernel kernel-devel

再次尝试:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl

-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: Permission denied

仍失败



方法4:

安装perl环境:

[root@localhost vmware-tools-distrib]# yum groupinstall "Perl Support"

将环境一次编译好:

[root@localhost vmware-tools-distrib]#yum install gcc gcc-c++ automake make

再次尝试:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl

-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: Permission denied

依旧失败




最后原因是:没有装perl(原来我把镜像里的package包单独拎出来放在的tmp目录里配置的yum,结果认不到)

后来重新直接把镜像挂载到/mnt目录下即可:

yum clean all

yum makecache

yum install perl

[root@localhost vmware-tools-distrib]# ./vmware

分享 转发
TOP
发新话题 回复该主题