How to execute a PL file in Linux?

Run this instead:

./vmware-install.pl 

The ./ refers to the current directory.

If you run it without ./, Linux will look for a program called vmware-install.pl in your executable path, but the current directory is never in the path by default (for security reasons).


"How to execute a PL file in Linux?"

A PL file in Linux (filename ending with .pl) is very likely a Perl-program. So run it with perl like this:

perl vmware-install.pl

It's often also possible to just:

./vmware-install.pl        #or:
where/the/file/is/vmware-install.pl

But this requires the execution bit (a chmod +x attribute) to be set on vmware-install.pl and also Perl must be installed on your Linux where the first line says (head -1 vmware-install.pl). If perl vmware-install.pl doesn't work, there might be two explanations for that: 1) your system don't have perl installed (unlikely on linux) or 2) perl is not installed in any of the folders in the $PATH environment variable. Try:

echo $PATH
perl vmware-install.pl
/usr/bin/perl vmware-install.pl
/usr/local/bin/perl vmware-install.pl
/whereever/your/system/has/perl vmware-install.pl
sudo yum install perl        #to install perl on Redhat, RHEL, CentOS etc
sudo apt-get install perl    #to install perl on Ubuntu, etc

Tags:

Linux

Perl

Fedora