LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-17-2009, 06:18 AM   #1
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Rep: Reputation: 16
Several Dependencies errors using MCPAN on RHEL 5.3 / CentOS 5.3


I never encountered that with 5.2 on both, but since I am using 5.3, I am getting weird errors.

Let me first explain what I am doing.

On a fresh install, I am first initialize MCPAN using the following commands

Quote:
export LANG=C
perl -MCPAN -e shell
I always answer 'no' at the first question whether I am ready to configure mcpan manually.

I am trying now to install the following packages

Quote:
install Bundle::CPAN
install Bundle::LWP
install Bundle::libnet
install DBI
install DBD::mysql
And receive the following errors at the end (I always confirm the defaults with 'Enter' during the installation)

Quote:
Originally Posted by Bundle::CPAN
Writing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Module/Build/.packlist
/usr/bin/make install -- OK

Recursive dependency detected:
Bundle::CPAN
=> Test::Harness
=> A/AN/ANDYA/Test-Harness-3.17.tar.gz
=> File::Spec
=> S/SM/SMUELLER/PathTools-3.30.tar.gz
=> Scalar::Util
=> G/GB/GBARR/Scalar-List-Utils-1.21.tar.gz
=> Test::More
=> M/MS/MSCHWERN/Test-Simple-0.92.tar.gz
=> Test::Harness.
Cannot continue.


CPAN: Term::ReadLine::Perl loaded ok
....................
20 subroutines in Term::ReadLine redefined

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled
Quote:
Originally Posted by Bundle::LWP
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK

Recursive dependency detected:
Bundle::LWP
=> Digest::MD5
=> G/GA/GAAS/Digest-MD5-2.39.tar.gz
=> File::Spec
=> S/SM/SMUELLER/PathTools-3.30.tar.gz
=> Scalar::Util
=> G/GB/GBARR/Scalar-List-Utils-1.21.tar.gz
=> Test::More
=> M/MS/MSCHWERN/Test-Simple-0.92.tar.gz
=> Test::Harness
=> A/AN/ANDYA/Test-Harness-3.17.tar.gz
=> File::Spec.
Cannot continue.
Quote:
Originally Posted by DBI
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK

Recursive dependency detected:
DBI
=> T/TI/TIMB/DBI-1.609.tar.gz
=> Scalar::Util
=> G/GB/GBARR/Scalar-List-Utils-1.21.tar.gz
=> Test::More
=> M/MS/MSCHWERN/Test-Simple-0.92.tar.gz
=> Test::Harness
=> A/AN/ANDYA/Test-Harness-3.17.tar.gz
=> File::Spec
=> S/SM/SMUELLER/PathTools-3.30.tar.gz
=> Scalar::Util.
Cannot continue.
Quote:
Originally Posted by XML::Simple
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK

Recursive dependency detected:
XML::Simple
=> G/GR/GRANTM/XML-Simple-2.18.tar.gz
=> XML::SAX
=> G/GR/GRANTM/XML-SAX-0.96.tar.gz
=> XML::NamespaceSupport
=> P/PE/PERIGRIN/XML-NamespaceSupport-1.10.tar.gz
=> Test::More
=> M/MS/MSCHWERN/Test-Simple-0.92.tar.gz
=> Test::Harness
=> A/AN/ANDYA/Test-Harness-3.17.tar.gz
=> File::Spec
=> S/SM/SMUELLER/PathTools-3.30.tar.gz
=> Scalar::Util
=> G/GB/GBARR/Scalar-List-Utils-1.21.tar.gz
=> Test::More.
Cannot continue.
I cannot post the output of DBD::Mysql as I don't have MySQL installed on this server.

Anyone has a way to shed some light on this ?
 
Old 08-17-2009, 07:28 PM   #2
mrbubblesort
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: Debian / Ubuntu
Posts: 14

Rep: Reputation: 1
You need to download and install these dependency packages, but if the server you have set to download it from is not available, it will fail. If you configure cpan manually, you can select which servers you want to use (as well as which programs cpan will use to get, decompress, and compile each package) and if one is down, it will automatically move on to the next instead of failing. Don't worry, the manual config is a piece of cake to use, all it does is ask you a bunch of questions, and you can use the default values for most of them.

If the package is downloaded but it can't install for some reason, you an manually install each package by doing this:

1. cd to the directory where the package directory (something like .../.cpan/build/package name)
2. run "make"
3. if no errors, then run "make test"
4. if no errors, then run "make install"

Last edited by mrbubblesort; 08-17-2009 at 07:32 PM.
 
Old 08-18-2009, 03:31 AM   #3
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by mrbubblesort View Post
You need to download and install these dependency packages, but if the server you have set to download it from is not available, it will fail. If you configure cpan manually, you can select which servers you want to use (as well as which programs cpan will use to get, decompress, and compile each package) and if one is down, it will automatically move on to the next instead of failing. Don't worry, the manual config is a piece of cake to use, all it does is ask you a bunch of questions, and you can use the default values for most of them.

If the package is downloaded but it can't install for some reason, you an manually install each package by doing this:

1. cd to the directory where the package directory (something like .../.cpan/build/package name)
2. run "make"
3. if no errors, then run "make test"
4. if no errors, then run "make install"
Oh, I did try that .. but every single package install says

Quote:
<package>is up to date<version>
Which is so weird
 
Old 08-18-2009, 08:41 AM   #4
mrbubblesort
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: Debian / Ubuntu
Posts: 14

Rep: Reputation: 1
I just did a quick google search, and quite a few people seem to be having the same problem as yours. It seems to be a rather recent problem with the Test::Harness & Test::More packages.

These two guys recommend reinstalling CPAN:
http://blog.laufeyjarson.com/2009/06...ncies-in-cpan/
http://www.nntp.perl.org/group/perl....06/msg526.html

This guy says if you manually install Test::Harness it will go away:
http://iftekhar.blogspot.com/2009/08...y-on-cpan.html

But I think this will help you the most:
http://code.google.com/p/test-more/issues/detail?id=48

Quoting from that site:
Quote:
Upgrade just CPAN, not Bundle::CPAN. If it doesn't work in the CPAN shell do it by
hand ("look CPAN" to get at it in a shell).

Anyhow, looks like CentOS 5 is shipping a busted CPAN shell. Take it up with them.
Sorry.

Does that help at all?
 
Old 08-19-2009, 12:18 PM   #5
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
Thanks for the links .. I tried now to install Test::Harness and indeed it fails at first with the same dependencies errors.
Then as described in the articel, I installed it manually using

Quote:
cd ~/.cpan/Build/
cd Test-Harness[tab]*
perl Makefile.PL
make install
But it seemed to have broken CPAN...

Then I realized that the first package I installed was Bundle::CPAN .. and THEN Test:Harness.

Tried the other way around ...which seem to work at first .. Test::Harness installed fine .. but Bundle::CPAN bombed out with the same error ...

Then left CPAN again and tried installing Test::Harness manually .. bang .. CPAN now starts with

Quote:
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters...
rats .... Not so straight forward as I thought

Going to install Devel::NYTProf now and see if that works ... (from your last link)

Last edited by utw-mephisto; 08-19-2009 at 12:19 PM.
 
Old 08-19-2009, 02:34 PM   #6
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
None of the suggestions worked ..

Since "Test::Harness" seem to be the offending package, I simply downloaded it from
Code:
http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/Test-Harness-3.17.tar.gz
installed it with

Code:
perl Makefile.PL
make
make test
make install
And went through my modules as usual ...
 
  


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
Yum: phantom dependencies in Centos 5 paradad LinuxQuestions.org Member Intro 4 06-06-2009 02:34 AM
FFMPEG 0.5 on CentOS Dependencies BeeRich Linux - Newbie 5 03-20-2009 10:20 PM
RPM dependencies LOOP - HELP - RHEL 5.0 kryon Red Hat 2 03-11-2009 03:51 PM
Ghostscript errors after upgrading from RHEL AS 4 to RHEL 5.1. mightyscotchpine Linux - Server 0 04-03-2008 07:38 PM
Is CentOS RHEL or RHEL Server? mikes63737 Linux - Distributions 1 02-28-2006 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 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