LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2015, 10:01 AM   #1
mcgheetech79
LQ Newbie
 
Registered: Mar 2015
Posts: 12

Rep: Reputation: Disabled
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/

Last edited by mcgheetech79; 03-17-2015 at 10:08 AM.
 
Old 03-17-2015, 10:13 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 03-17-2015, 10:16 AM   #3
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327

Rep: Reputation: 63
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
 
Old 03-17-2015, 09:17 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I guess you could look at the perl script and try to do those steps one at a time.
 
Old 03-18-2015, 09:38 AM   #5
mcgheetech79
LQ Newbie
 
Registered: Mar 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
-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.
 
Old 03-18-2015, 09:43 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.

Last edited by suicidaleggroll; 03-18-2015 at 09:44 AM.
 
Old 03-18-2015, 02:31 PM   #7
mcgheetech79
LQ Newbie
 
Registered: Mar 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
/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.

Last edited by mcgheetech79; 03-18-2015 at 02:33 PM.
 
Old 03-18-2015, 03:23 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by mcgheetech79 View Post
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 View Post
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 View Post
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.
 
Old 03-18-2015, 04:20 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Read ./vmware-install.pl with a text app or output to screen.

More ./vmware-install.pl
 
Old 03-19-2015, 11:51 AM   #10
mcgheetech79
LQ Newbie
 
Registered: Mar 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.

Last edited by mcgheetech79; 03-19-2015 at 11:53 AM.
 
Old 03-19-2015, 12:10 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.

Last edited by suicidaleggroll; 03-19-2015 at 12:21 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6.2 VMware Tools Install sunjayasri Linux - Desktop 2 09-18-2013 01:48 PM
Back-Track 5 r2 installing Vmware-tools ./vmware-install.pl gives permission deined LaoK Linux - Newbie 10 01-17-2013 01:11 AM
installing vmware tools citrus Linux - General 6 09-08-2006 10:11 AM
Trouble installing wireless-tools & trying to install Wireless PCI pragmatic Linux - Wireless Networking 1 06-21-2005 07:39 AM
VMWare - Installing VMWare Tools Nightmare jerkmonkee Linux - Newbie 2 11-14-2004 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration