LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble installing VMware tools on Centos 7 minimum install (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-installing-vmware-tools-on-centos-7-minimum-install-4175537013/)

mcgheetech79 03-17-2015 10:01 AM

Trouble installing VMware tools on Centos 7 minimum install
 
So I'm on the last step of this article to run vmware-install.pl to start installation of my VMware tools and I'm getting this error.

[root@LinuxTest01 vmware-tools-distrib]# ./vmware-install.pl
-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory.

I do a ls in the directory and it shows the installer in there.
[root@LinuxTest01 vmware-tools-distrib]# ls
bin doc etc FILES INSTALL installer lib vmware-install.pl


The only step I didnt do in this article is the prereq. first step because Yum is always trying to connect to the internet and my Centos 7 box is on a classified network with no internet access.

http://www.ehowstuff.com/how-to-inst...hel-7centos-7/

suicidaleggroll 03-17-2015 10:13 AM

Code:

/usr/bin/perl: bad interpreter: No such file or directory
You need to install perl

You'll probably need to install a lot of build tools as well, so you'll have to figure out a way to get past that internet access issue. There's a reason you need to follow the prereq step. Not having access to the internet doesn't mean you don't have to do it.

strick1226 03-17-2015 10:16 AM

I believe you're seeing this error as you did not, as stated, install the prerequisites as described in the linked howto.

A minimal install of CENTOS 7 is not going to include perl, for example. You also would need at least the other items listed on that howto before you would be able to install VMWare tools.

You could try mounting the installation media again and, depending on whether it's the full installation DVD or not, might be able to install the packages from there. That's probably your best option if you can't access a network at all.

Good luck!


strick

jefro 03-17-2015 09:17 PM

I guess you could look at the perl script and try to do those steps one at a time.

mcgheetech79 03-18-2015 09:38 AM

-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory.
 
There are 118 RPM's on the Centos 7 ISO. How do I know which one of the perl rpm's I load in order for the VMware tools instaler to work? Also I ran the rpm -Uvh *.rpm which ran all the rpm's anyways. Also Net-Tools are already installed.

suicidaleggroll 03-18-2015 09:43 AM

You're using the minimal ISO aren't you? That only contains the bare minimum set of packages to keep the ISO as small as possible. Chances are all (or at least the vast majority) of those RPMs on the ISO were already installed as part of the OS installation anyway.

You need to download the Everything ISO if you want to create a local yum repository, and you do NOT want to just do an "rpm -Uvh *.rpm" on that! I didn't realize the "CD" you were installing all of the RPMs from on your previous thread was the CentOS minimal ISO...that's rather pointless, I figured it was a custom set of RPMs you needed to install on this machine that you had stored on a CD for some odd reason.

Download the Everything ISO and then follow one of the many online guides to turn it into a local yum repository, then use yum to install the necessary packages as you would normally.

mcgheetech79 03-18-2015 02:31 PM

/usr/bin/perl: bad interpreter: No such file or directory
 
I need to use the minimum ISO for the applications I'm running. Also like I said I installed 218 perl RPM's on my Centos 7 VM and I also see Yum RPM's installed from the package as well so I don't know why the ./vmware-install.pl isn't working.

suicidaleggroll 03-18-2015 03:23 PM

Quote:

Originally Posted by mcgheetech79 (Post 5334253)
I need to use the minimum ISO for the applications I'm running.

That doesn't make any sense. The minimal ISO contains nothing that the everything ISO doesn't also contain. The minimal ISO simply contains a subset of the everything ISO packages, only those packages that are required to install a base system, nothing more. It shouldn't be used as an RPM resource because chances are every RPM it contains has already been installed on your system as part of the OS installation process (if it wasn't installed, it means it wasn't necessary, in which case what is it doing on the minimal ISO in the first place?).

Quote:

Originally Posted by mcgheetech79 (Post 5334253)
Also like I said I installed 218 perl RPM's on my Centos 7 VM

You didn't say that, you said nothing about installing any perl RPMs. Where on earth did you get these 218 perl RPMs anyway? Where are they from and what are they? Apparently none of them are actually perl or you wouldn't have seen the "/usr/bin/perl: No such file or directory" error.

Quote:

Originally Posted by mcgheetech79 (Post 5334253)
and I also see Yum RPM's installed from the package as well so I don't know why the ./vmware-install.pl isn't working.

yum comes pre-installed on any RHEL/CentOS installation, and its presence has nothing at all to do with installing the vmware tools.

jefro 03-18-2015 04:20 PM

Read ./vmware-install.pl with a text app or output to screen.

More ./vmware-install.pl

mcgheetech79 03-19-2015 11:51 AM

It makes perfect sense. I don't need all the overhead from the complete install. The RPM's I downloaded and put on the Cenots 7 VM are needed for the applications I am running.

suicidaleggroll 03-19-2015 12:10 PM

I'm not talking about installing everything, I'm talking about downloading the everything ISO on your host system to use as a local yum repository so you have access to the packages you need when you need them, such as perl, which was apparently NOT installed by the minimal ISO, NOT included in the minimal ISO rpms, and was NOT installed when you ran your rpm command, as indicated by your "perl: command not found" error.

Using the minimal ISO as a yum repository is pointless as it doesn't include anything that wasn't already installed as part of the original OS installation. That's what the "minimal" means.

And this is what I was saying didn't make any sense:
Quote:

I need to use the minimum ISO for the applications I'm running.
Nobody needs the minimal ISO (ignoring size constraints), because it does not include anything special that's not also included by the other ISOs. You might be able to use the minimal ISO, if your requirements are very light, but if it doesn't include a package you need, then it doesn't include a package you need (which would be just about anything). In that case you need to either have internet access so you can use an online repo, or download one of the more complete ISOs to use as a local repo to grab those additional packages.


All times are GMT -5. The time now is 05:33 AM.