Professional Web Applications Themes

linux - install bundle::cpan - PERL Beginners

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 this is the output of install Data::Dumper cpan> install Data::Dumper Running install for module Data::Dumper Running make for I/IL/ILYAM/Data-Dumper-2.121.tar.gz Is already unwrapped into directory /root/.cpan/build/Data-Dumper-2.121 Has already been processed within this session Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/dumper......ok ...

  1. #1

    Default linux - install bundle::cpan

    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


    this is the output of install Data::Dumper
    cpan> install Data::Dumper
    Running install for module Data::Dumper
    Running make for I/IL/ILYAM/Data-Dumper-2.121.tar.gz
    Is already unwrapped into directory /root/.cpan/build/Data-Dumper-2.121
    Has already been processed within this session
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/dumper......ok
    t/overload....ok
    t/pair........ok
    All tests successful.
    Files=3, Tests=373, 1 wallclock secs ( 0.61 cusr + 0.03 csys = 0.64 CPU)
    /usr/bin/make test -- OK
    Running make install
    Already done


    This is the output of install Bundle::Libnet
    cpan> install Bundle::libnet
    Running install for module Data::Dumpercpan> install Data::Dumper
    Running install for module Data::Dumper
    Running make for I/IL/ILYAM/Data-Dumper-2.121.tar.gz
    Is already unwrapped into directory /root/.cpan/build/Data-Dumper-2.121
    Has already been processed within this session
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/dumper......ok
    t/overload....ok
    t/pair........ok
    All tests successful.
    Files=3, Tests=373, 1 wallclock secs ( 0.61 cusr + 0.03 csys = 0.64 CPU)
    /usr/bin/make test -- OK
    Running make install
    Already done

    Running make for I/IL/ILYAM/Data-Dumper-2.121.tar.gz
    Is already unwrapped into directory /root/.cpan/build/Data-Dumper-2.121
    Has already been processed within this session
    Running make test
    Prepending /root/.cpan/build/Data-Dumper-2.121/blib/arch
    /root/.cpan/build/Data-Dumper-2.121/blib/lib to PERL5LIB.
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/dumper......ok
    t/overload....ok
    t/pair........ok
    All tests successful.
    Files=3, Tests=373, 1 wallclock secs ( 0.63 cusr + 0.01 csys = 0.64 CPU)
    /usr/bin/make test -- OK
    Running make install
    Already done
    Net::Telnet is up to date.
    Net::Cmd is up to date.
    Bundle summary: The following items in bundle Bundle::libnet had
    installation problems:
    Data::Dumper

    --
    Using M2, Opera's revolutionary e-mail client: [url]http://www.opera.com/m2/[/url]
    Paul Kraus Guest

  2. #2

    Default Re: linux - install bundle::cpan


    "Paul Kraus" <pkrauspelsupply.com> wrote in message
    news:opru3tymdjoxex46mail.pelsupply.com...
    > 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:

    [trwwwwaveright 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?

    [trwwwwaveright trwww]$ perl
    use Data::Dumper;

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

    and then:

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


    Todd W. Guest

  3. #3

    Default Re: linux - install bundle::cpan

    if you have cpan set-up with UNINSTALL=1

    the older file will be detected and replaced in toto by the new one

    Todd W. wrote:
    > "Paul Kraus" <pkrauspelsupply.com> wrote in message
    > news:opru3tymdjoxex46mail.pelsupply.com...
    >
    >>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:
    >
    > [trwwwwaveright 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?
    >
    > [trwwwwaveright trwww]$ perl
    > use Data::Dumper;
    >
    > print $Data::Dumper::VERSION, "\n";
    > Ctrl-D
    > 2.12
    >
    > and then:
    >
    > [trwwwwaveright 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.
    >
    >
    >

    Bruce Ferrell Guest

Similar Threads

  1. Replies: 0
    Last Post: May 10th, 08:51 PM
  2. install Bundle::CPAN in Cygwin failed
    By sea in forum PERL Modules
    Replies: 1
    Last Post: October 17th, 11:56 PM
  3. Bundle::CPAN: File lacking bundle definition
    By Jim Keenan in forum PERL Modules
    Replies: 0
    Last Post: April 1st, 02:23 PM
  4. Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)
    By Matthew Glidden in forum PERL Beginners
    Replies: 2
    Last Post: December 11th, 06:50 PM
  5. Bundle::CPAN install problem ?
    By John Smith in forum PERL Miscellaneous
    Replies: 0
    Last Post: August 13th, 01:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139