LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Several Dependencies errors using MCPAN on RHEL 5.3 / CentOS 5.3 (https://www.linuxquestions.org/questions/linux-server-73/several-dependencies-errors-using-mcpan-on-rhel-5-3-centos-5-3-a-748087/)

utw-mephisto 08-17-2009 06:18 AM

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 ?

mrbubblesort 08-17-2009 07:28 PM

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"

utw-mephisto 08-18-2009 03:31 AM

Quote:

Originally Posted by mrbubblesort (Post 3647278)
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 :(

mrbubblesort 08-18-2009 08:41 AM

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?

utw-mephisto 08-19-2009 12:18 PM

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)

utw-mephisto 08-19-2009 02:34 PM

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 ...


All times are GMT -5. The time now is 11:24 AM.