View Full Version : Reinstall Perl - or what do you recommend?
Brenden
02-03-2004, 08:37 PM
Hi,
We have a new RH 9 box - just installed DA and now I went to install PerlDesk and it seems perl has craped itself...
How would one go about updating perl?
DirectAdmin Support
02-04-2004, 11:21 AM
Hello,
You could probably just get a perl rpm and reinstall it by removing the old perl, then reinstalling a new one.
Try this one:
ftp://216.254.0.38/linux/redhat/updates/9/en/os/i386/perl-5.8.0-88.3.i386.rpm
(not tested)
John
Brenden
02-04-2004, 04:02 PM
Thanks for that!
I think it's 5.8 that's causing the problems...
package perl-5.8.0-88.3 is already installed
Is there a safe way to remove 5.8 and still something a little older?
ProWebUK
02-04-2004, 04:51 PM
rpm -e --nodeps perl
Chris
Brenden
02-04-2004, 05:02 PM
Can't locate CGI.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at index.cgi line 28.
BEGIN failed--compilation aborted at index.cgi line 28.
Would this error indicate that perl is broken or just dosn't have the required moduals installed?
Brenden
02-04-2004, 05:03 PM
I also get this when I run CPAN to install moduals
# perl -MCPAN -e shell
Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.
ProWebUK
02-04-2004, 05:12 PM
Get the CPAN Modules, I just checked one of our servers and have:
CPAN
CPAN::FirstTime
CPAN::Nox
You should be able to just install CPAN from source and the others should be bundled.
the CGI.pm problems are also missing modules, once you have CPAN:
perl -MCPAN -e shell
cpan> install CGI
For any modules source packages check: http://www.cpan.org/modules/by-module/
Installation is usually
wget http://link.to/package.tar.gz
tar -zxvf package.tar.gz
cd package*
perl Makefile.PL
make
make install
Chris
Brenden
02-04-2004, 05:27 PM
Originally posted by ProWebUK
Get the CPAN Modules, I just checked one of our servers and have:
CPAN
CPAN::FirstTime
CPAN::Nox
You should be able to just install CPAN from source and the others should be bundled.
the CGI.pm problems are also missing modules, once you have CPAN:
perl -MCPAN -e shell
cpan> install CGI
For any modules source packages check: http://www.cpan.org/modules/by-module/
Installation is usually
wget http://link.to/package.tar.gz
tar -zxvf package.tar.gz
cd package*
perl Makefile.PL
make
make install
Chris
Thanks Chris - You are a god!!
ProHS
02-07-2004, 03:39 PM
Can we upgrade Perl to the latest version? if so is there a how to guide to configure with DirectAdmin's custom apache for FreeBSD.
Brenden
02-07-2004, 07:59 PM
What did I screw up?
Writing Makefile for DBD::mysql
Makefile:89: *** missing separator. Stop.
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Running install for module DBD::mysql
Brenden
02-07-2004, 09:48 PM
Could someone post their /usr/lib/perl5/5.8.0/CPAN/Config.pm file here?
Brenden
02-07-2004, 10:03 PM
I've successfully installed other moduals but:
DBD::mysql
Digest::MD5
Will not install what so ever. Any ideas?
NgtCrwlr
02-07-2004, 10:59 PM
pigsy writes:
This turns out to be a bug in RH9 (apparently).
It can be worked around by setting an environment variable before doing the install:
export LANG=C
where is file and where do i type it in the file??
david_ross writes:
Just type it at the console you are working from:
export LANG=C
You may want to put it at the end of "/etc/bashrc" this will set it each time you log in.
Brenden, if you have further DBD install problems I suggest reading the entire thread at linuxquestions.org. There's more things to try.http://www.linuxquestions.org/questions/history/62975
Hope this brings you a smile.
Cheers!
-Larry
Brenden
02-07-2004, 11:46 PM
Originally posted by NgtCrwlr
...
Larry - your a god too!!!
I was rather successful after running export LANG=C it just seems you have to force the install of Bundle:: DBD::mysql because mysql has a root password - just like the thread said ;)
This thread will be a good refence to other people in my sistuation...
Thanks again to everyone!!
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.