Reinstall Perl - or what do you recommend?

Brenden

Verified User
Joined
Oct 24, 2003
Messages
35
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?
 
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?
 
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?
 
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.
 
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
 
ProWebUK said:
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!!
 
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.
 
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
 
Could someone post their /usr/lib/perl5/5.8.0/CPAN/Config.pm file here?
 
I've successfully installed other moduals but:
DBD::mysql
Digest::MD5
Will not install what so ever. Any ideas?
 
Try this from linuxquestions.org

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
 
Re: Try this from linuxquestions.org

NgtCrwlr said:
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!!
 
Back
Top