"Paul Kraus" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to install Bundle::CPAN and i seem stuck in this loop. Any
> suggestions? outut of command issued below.
>
> Paul Kraus
>
> using perl -MCPAN -e shell as root.
>
> this is the output...
> Bundle summary: The following items in bundle Bundle::CPAN had
installation
> problems:
>    Bundle::libnet and the following items had problems during recursive
>    bundle calls: Data::Dumper
>

You should be good to go.

I noticed this, and I think it has to do with CPAN not removing the first
version of Data::Dumper and the standard module paths appearing before the
local paths in @INC.

Data::Dumper comes with the standard perl distribution. When you install a
newer Data::Dumper from the CPAN, it gets installed in the "local" module
path. So when a program says "use Data::Dumper;" it gets the older version.
note:

[EMAIL PROTECTED] trwww]$ locate Data/Dumper.pm
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/Data/Dumper.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Data/Dumper.pm
/usr/lib/perl5/site_perl/5.8.0/MLDBM/Serializer/Data/Dumper.pm

See how Data::Dumper is installed in two locations?

[EMAIL PROTECTED] trwww]$ perl
use Data::Dumper;

print $Data::Dumper::VERSION, "\n";
Ctrl-D
2.12

and then:

[EMAIL PROTECTED] trwww]$ perl
use lib qw(/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi);
use Data::Dumper;

print $Data::Dumper::VERSION, "\n";
Ctrl-D
2.121

The "use lib ..." construct puts
"/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi" in the modle search
path before the standard module locations, so in the latter case the newer
module gets loaded first.

Taking a guess as to the problem, I would say CPAN installs the new
Data::Dumper and then use()es it. Since the older version is found first, it
gets loaded. Then some type of check is done ( maybe a version check )
against the version just installed.

Your biggest indicator is the tests. If they pass, everything is fine.
Anything else is usually an edge case CPAN.pm isnt prepared for.

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to