Tip! – Install VMware Tools on Linux Error : -bash: .vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory

Tip! – Install VMware Tools on Linux Error : -bash: .vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory

This is just a small tip to install VMware tools on Linux Operating System. If you are installing the VMware tools on a Linux Machine you might be familiar with this error message when you perform the “./vmware-install.pl” command. This is the common error message that you can see in the Linux machines ” -bash: .vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory “. So, I thought to write this as Tip! for the VMware administrators and I think this might be really helpful for them to install the VMware tools.

This is the error that can appear on your terminal and I just listed the files in the “vmware-tools-distrib” folder for your information.

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

Tip : Make sure to install perl on your Linux system before you run the VMware tools installer 

For example this is the command for the CentOS:

[root@server vmware-tools-distrib]#yum -y install perl

For more information See the steps to install the tools on a linux system, I wrote this article using a CentOS Virtual Machine

How to Install VMware Tools on Linux Virtual Machine

Mount the VMware Tools installer to the Virtual Machine, Right-Click on the Virtual Machine -> Guest -> Install/Upgrade VMware Tools

Login to the Operating System and follow the below Steps in the terminal:

[root@server]#mkdir /mnt/cdrom
[root@server]#mount /dev/cdrom /mnt/cdrom
[root@server]#cp /mnt/cdrom/VMwareTools-version.tar.gz /tmp/
[root@server]#cd /tmp
[root@server tmp]#ls | grep VMwareTools
#Note the VMware Tools Version, ex: VMwareTools-5.0.0-12124.tar.gz
[root@server tmp]#tar -zxvf VMwareTools-version.tar.gz
[root@server tmp]#cd vmware-tools-distrib
[root@server vmware-tools-distrib]#./vmware-install.pl

Check the VMware Tools status in the Summary Tab

Once You confirmed the status unmount and remove the installation packages from the Operating System for the clean up

[root@server vmware-tools-distrib]#cd #
[root@server]#umount /mnt/cdrom
[root@server]#rm /tmp/VMwareTools-version.tar.gz
[root@server]#rm -rf /tmp/vmware-tools-distrib

If you found this post as useful please rate the post and share it!

Click to rate this post!
[Total: 5 Average: 5]

One response

  1. Michael Rideout Avatar
    Michael Rideout

    Thank you so very much from Jacksonville Florida

Leave a Reply

Your email address will not be published. Required fields are marked *