compdigit44
asked on
Redhat Linux 5.2 Install Perl
In Redhat Linux 5.2 how can I install Perl? I am not the best at Linux so please bare with me.
ASKER
I typed perl -v and got back that 5.00_04 is installed. I am trying to installed Vmtools and get the error Can't locate warnings.pm in /usr/lib/perl5/i386-linux/ 5.00_04 ......
Maybe my perl version needs to be upgraded? If so how can I do this?
Maybe my perl version needs to be upgraded? If so how can I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also one basic step
before try to install perl
check if is alreasy installed
rpm -qa|grep -i perl
if u get something like
perl-5.XXX -- > perl version
then you have it
before try to install perl
check if is alreasy installed
rpm -qa|grep -i perl
if u get something like
perl-5.XXX -- > perl version
then you have it
As root:
yum update perl
If this fails due to lots of missing dependencies you will have to upgrade the OS.
yum update perl
If this fails due to lots of missing dependencies you will have to upgrade the OS.
ASKER
After I type in su -
I type in yum update perl and get bash: yum command not found
I type in yum update perl and get bash: yum command not found
ASKER
also I am not sure if this a problem or not but my / directory is 250MB and is showing 100% full yet my home and usr directory are fine at 9.5GB
/ should never become that full. Please clean up!
forget clean up; reinstall it
seems there are multiple issues and missing files, probably from your seemingly underprovisioned root partition
also, 5.2 is long out of support; 5.11 is the latest
seems there are multiple issues and missing files, probably from your seemingly underprovisioned root partition
also, 5.2 is long out of support; 5.11 is the latest
ASKER
I will try to rebuild..
How can I specify my /root size during install
How can I specify my /root size during install
you can do it if you select custom partitioning
ASKER
How can i use disk drug to properly partiion my drive
depends how you want it
you mentioned before you had a separate /home and /usr directories - you want to keep it that way or just have 1 large root partition?
if you want it one large partition, i would first create a swap partition of 4gb (as an example; not sure how much memory or disk space there is but shouldn't need a large one anyway) and do / for remaining free space
you mentioned before you had a separate /home and /usr directories - you want to keep it that way or just have 1 large root partition?
if you want it one large partition, i would first create a swap partition of 4gb (as an example; not sure how much memory or disk space there is but shouldn't need a large one anyway) and do / for remaining free space
ASKER
some how I figured in out..
I created a 8GB root
6GB home
2GB tmp
100mb swap
I created a 8GB root
6GB home
2GB tmp
100mb swap
ASKER
OK I finished re-installing and now have ample free space I tried to install Vmtools again and got the same Can't locate warning.pm error again
yum groupinstall "Development Tools" "Development Libraries"
then try vmware tools again
then try vmware tools again
ASKER
same error
bash: yum command not found
bash: yum command not found
what install options did you select?
ASKER
Ok I am trying to reinstall peral.. and mount my install CD where can i find the rpm installs for peral .. yum etc
Also could a more updated version of perl be downloaded to run on Redhat 5.2. Also I need to run this version since one our apps still runs on this version..
Also could a more updated version of perl be downloaded to run on Redhat 5.2. Also I need to run this version since one our apps still runs on this version..
ASKER
I manage to reinstall perl for the CD but got the same error when trying to install VM tools again. I believe this has to do with the fact the Perl verison is so old.
I downloaded perl-5.1.2.3.-11.14.1.src. rpm and install it but when I type in perl -v it still shows 5.00..
Maybe I did not down the correct one for Redhat??
Mayb
I downloaded perl-5.1.2.3.-11.14.1.src.
Maybe I did not down the correct one for Redhat??
Mayb
which perl
what does it return?
what does it return?
ASKER
I downloaded another copy of perl from
http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0:
I run rpm -ivh perl*
I get a bunch of #### on two line then returns to a command prompt
when I type in perl -v 5.00 is still listed
http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0:
I run rpm -ivh perl*
I get a bunch of #### on two line then returns to a command prompt
when I type in perl -v 5.00 is still listed
what happens when you do which perl ?
ASKER
I get /usr/bin/perl
the perl version with RHEL 5.2 is 5.8.8
on your media where you installed the package, what does ls perl* look like?
on your media where you installed the package, what does ls perl* look like?
ASKER
THe version of perl I tried to install was the one in the following link http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0: so I am guess it is 5.8 since this is the only RPM on the ISO I created.
Should I try another download? Can you recommend one..
Should I try another download? Can you recommend one..
use the rpm on the installation media
ASKER
I tried that same result...
still shows 5.00 when I run perl -v
still shows 5.00 when I run perl -v
what does cat /etc/redhat-release show?
Hi take a look the rpm u installed:
THe version of perl I tried to install was the one in the following link http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0:
perl-5.8.8-41.el5.src --- > mean you installed only the source not the package
this is why if you run perl -v youn still see the old version
the package you need to install need to be similar but without the src
my guess is if you try to install newer perl version then some other package that depends of the perl will need to be update too
be aware of that..
Regards.
THe version of perl I tried to install was the one in the following link http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0:
perl-5.8.8-41.el5.src --- > mean you installed only the source not the package
this is why if you run perl -v youn still see the old version
the package you need to install need to be similar but without the src
my guess is if you try to install newer perl version then some other package that depends of the perl will need to be update too
be aware of that..
Regards.
ASKER
ON the site below I am not seeing the 5.8.8 Perl DOwnload for 32bit REdhat Linux with out the SRC as you listed
http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0:
http://www.rpmseek.com/rpm-dl/perl-5.8.8-41.el5.src.html?hl=com&cx=0:-:0:12511806:0:0:0:
ASKER
If some could send me a link of the latest version of perl Redhat 5.2 32 bit can handle I would be very grateful...
Hi
Do you have account at RHN ( Red Hat Network)?
Regards.
Do you have account at RHN ( Red Hat Network)?
Regards.
ASKER
I created an account but do not have a subscription
ASKER
I tried going back to the www.perl.org/get.html
and downloaded the binaries and source for the latest version of per yet when I tried to install Active Perl using install.sh
it faiils stating it wasn't able to read the first line...
Any advice... I am grateful for everyone help
and downloaded the binaries and source for the latest version of per yet when I tried to install Active Perl using install.sh
it faiils stating it wasn't able to read the first line...
Any advice... I am grateful for everyone help
ASKER
I downloaded perl.5.12.5 extracted it and see install_lib.pl and when I try to run this I get..... bash ./install_lib.pl Permission Denied
There is also a installhtml file
There is also a installhtml file
ASKER
Does anyone have any thoughts on this ... Sorry if this is a simple problem but it big for me since I am not very good in Linux
This is your error:
"Can't locate warnings.pm in /usr/lib/perl5/i386-linux/ 5.00_04 ......"
Have you tried a "cpan install warnings" ?
"Can't locate warnings.pm in /usr/lib/perl5/i386-linux/
Have you tried a "cpan install warnings" ?
ASKER
no I have not... is that the exact command I should type.. Also why is yum not installed on a base install of redhat 5.2
if it's RedHat as opposed to CentOS (or Fedora), it uses "rpm" for installations and updates.
And, yes, I believe that's the exact syntax. If cpan doesn't find it, you should be able to download warnings.pm and put it within the perl subdirectory.
And, yes, I believe that's the exact syntax. If cpan doesn't find it, you should be able to download warnings.pm and put it within the perl subdirectory.
ASKER
OK I will try it within the hour and let you know,,,,
thanks again
thanks again
ASKER
I get... bash: cpan command not found
You should be to install from RH using RPM.
If not:
https://metacpan.org/pod/distribution/CPAN/scripts/cpan
There is a download button partway down the page on the left.
If not:
https://metacpan.org/pod/distribution/CPAN/scripts/cpan
There is a download button partway down the page on the left.
ASKER
I see it is a tar.gz how do I install it.
This will decompress and open the archive:
tar -zxfs CPAN-2.05.tar.gz
If you run into a problem decompressing using tar, then:
gzip -d CPAN-2.05.tar.gz
tar xvfs CPAN-2.05.tar
Then:
cd CPAN-2.05
chmod 755 Makefile.PL
You should just be able to "./Makefile.PL" (no quotes)
tar -zxfs CPAN-2.05.tar.gz
If you run into a problem decompressing using tar, then:
gzip -d CPAN-2.05.tar.gz
tar xvfs CPAN-2.05.tar
Then:
cd CPAN-2.05
chmod 755 Makefile.PL
You should just be able to "./Makefile.PL" (no quotes)
ASKER
WHen I type in.... ./Makefile.PL aI get Unrecongized switch -*- cperl -h will show valid options
ASKER
WHern I type in perl Makefile.PL I get can't locate File/Spec.pm in @INC..
I believe my whole perl install in message up or so old it cannot handle anything...
Can someone point me to a download for the RPM verision of Perl which can run on Redhat 5.2 32 bit
I believe my whole perl install in message up or so old it cannot handle anything...
Can someone point me to a download for the RPM verision of Perl which can run on Redhat 5.2 32 bit
ASKER
PLease note when I did the inital install I one did the base install using the first CD that's it..
You can get the whole perl installation from cpan.org, as well.
ASKER
Ok,.... but my problem is that I do not know what do download or how to install it from a tar.gz :-(
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
login as a regular non-privileged (meaning not root) account:
wget https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.20.1.tar.gz
tar zxfs perl-5.20.1.tar.gz
cd perl-5.20.1
sh Configure -de
make
make test
sudo make install
Instead of "sudo make install", you can do "su -; make install". With the point being, don't compile as root although you have to be root to install it.
wget https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.20.1.tar.gz
tar zxfs perl-5.20.1.tar.gz
cd perl-5.20.1
sh Configure -de
make
make test
sudo make install
Instead of "sudo make install", you can do "su -; make install". With the point being, don't compile as root although you have to be root to install it.
ASKER
my Linux server does not have network / internet access
Put the CDs back in and install everything *perl*.
ASKER
OK... I the file I download is for ActivePerl.
When I type in sh Configure -de I get a no file or directory
Please see screen shot..
screenshot.png
When I type in sh Configure -de I get a no file or directory
Please see screen shot..
screenshot.png
you need to install all of your libraries but particularly glibc.
ASKER
how can I do this?
It's been too long since I've had to do this but, iirc, you just mount the CD/DVD into the drive, find the package and:
cd /path/to/cd/drive
rpm -ivh <package>
So, you should be able to:
rpm -ivh gcc
After you've found the file on the disk.
cd /path/to/cd/drive
rpm -ivh <package>
So, you should be able to:
rpm -ivh gcc
After you've found the file on the disk.
ASKER
Did I do something wrong durning the install to cause these packages to be missing? If so would I be better off reinstalling
Not necessarily. I believe the compiler is under "development" which you might not have thought to install.
I usually install most development and libraries. Saves headaches down the road.
I usually install most development and libraries. Saves headaches down the road.
ASKER
I reinstalled Redhat 5.2 and made sure I selected the "Development Tools" problem is I am having the same problems cpan still missing and getting the same warnings.pm missing...
How can I make sure the Dev Tools were installed
How can I make sure the Dev Tools were installed
Was there a drop down box that you can select or deselect packages within DevTools?
It's possible that not all of them were installed.
It's possible that not all of them were installed.
ASKER
I installed items like EMACs, C++ and Dev Tools and selected the option below to install individual packages when I typed in which cpan nothing was returned and got the same warnings.pm missing when installing VM tools
this is my third reinstall
this is my third reinstall
Did you ever run a find to see if it was in a non-default location?
sudo find / -name warnings.pm
Even as old as 5.2 is, I would think that module would be on the install disk.
sudo find / -name warnings.pm
Even as old as 5.2 is, I would think that module would be on the install disk.
ASKER
Nothing is returned... When I hit enter the screen pauses for a couple of seconds then returns to a command prompt..
Did I mess up the install????
Did I mess up the install????
I don't think so. If this is a new installation and you don't have a RedHat contract, can you not install CentOS 6.0 and yum update it to 6.6?
ASKER
stupid question so I am stuck and this cannot be fixed??
I don't know. I haven't done a 5.x install for 5 or 6 years.
ASKER
still no luck with anything I reinstalled Redhat 5.2 installing everything and stil get the can't find warnings.pm when trying to install any version of VMtools
I am open to any suggetions
I am open to any suggetions
http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/warnings-compat-0.07.tar.gz
copy to a usb drive.
insert the usb drive into the RH server (it should auto mount)
cd /path/to/usb drive
cp warnings-compat.0.07.tar.g z /some/directory/on/the/ser ver
cd /some/directory/on/the/ser ver
tar zxfs warnings-compat-0.07.tar.g z
cd warnings-compat-0.07
perl Makefile.PL
make
make test
make install
copy to a usb drive.
insert the usb drive into the RH server (it should auto mount)
cd /path/to/usb drive
cp warnings-compat.0.07.tar.g
cd /some/directory/on/the/ser
tar zxfs warnings-compat-0.07.tar.g
cd warnings-compat-0.07
perl Makefile.PL
make
make test
make install
ASKER
Here is what I got when I did as you advised..
1) When I typed in perl Makefile.PL (Warning: prerequisite Test:: More ) not found at (eval)
2) When I type in make test I get "undefined subroutine &test called at /usr/lib/perl/Test/Harness .pm
3) When I try to install VMtools again I get... Bareword "qr" not allowed while "strict subs" in use at ./vmtools.pl line
1414
1) When I typed in perl Makefile.PL (Warning: prerequisite Test:: More ) not found at (eval)
2) When I type in make test I get "undefined subroutine &test called at /usr/lib/perl/Test/Harness
3) When I try to install VMtools again I get... Bareword "qr" not allowed while "strict subs" in use at ./vmtools.pl line
1414
you are to putting the DVD in the drive and doing a command line search for what you need.
for what you are doing, this machine needs to be put on line so that you can properly install apps with dependencies.
for what you are doing, this machine needs to be put on line so that you can properly install apps with dependencies.
ASKER
I downloaded the warning.pm file as mentioned. Then used Folder2ISO and mount the ISO to my VM..
Also I am not able to get network access to the VM. In Vmware workstation 10 it will not reconize the NIC which is probably because Vmtools is not installed... catch-22
Also I am not able to get network access to the VM. In Vmware workstation 10 it will not reconize the NIC which is probably because Vmtools is not installed... catch-22
ASKER
Well I found on my problem .. .I download an really old copy of Redhat Linux 5.2 which is from 1998. The copy I needed and thought I download needed to be REdhat Linux Enterprise 5.2 or 5.4 32 Bit.
Everyone thank you so much for your help and support...
Everyone thank you so much for your help and support...
ASKER
All suggestion probably would have worked if I have downloaded the write version which I was told is only available through a paid subscription.
well, heck. i could have told you that.
your best best is to get rid of rh 5.anything and install CentOS 6. it is RHEL in the free version generally distributed about two months after its RH twin.
your best best is to get rid of rh 5.anything and install CentOS 6. it is RHEL in the free version generally distributed about two months after its RH twin.
ASKER
I know but the custom appliance we have run on Redhat Enterprise 5.4 and I need to create a test VM to try so changes in our lab
I even though about trying to find a free versin of Linux that is running the same kernal version of Redhat Enterprise 5.2 or 5.4
thanks again for all of your help.
I even though about trying to find a free versin of Linux that is running the same kernal version of Redhat Enterprise 5.2 or 5.4
thanks again for all of your help.
Try "which perl" and "perl -v".