Using CPAN to install Mail::Box module

Discussion in 'Perl Misc' started by Michael Yang, May 31, 2007.

  1. Michael Yang

    Michael Yang Guest

    I am using CPAN to install Mail::Box module. It can be installed on
    FC5, but always return errors on RHEL AS4.
    Here is the error log info. I only attached the tail part, because
    it's very long.

    /usr/bin/make -- OK
    Running make test
    Prepending /root/.cpan/build/TimeDate-1.16/blib/arch /root/.cpan/build/
    TimeDate- 1.16/blib/lib /root/.cpan/build/MailTools-1.77/blib/arch /
    root/.cpan/build/MailT ools-1.77/blib/lib /root/.cpan/build/Font-
    AFM-1.19/blib/arch /root/.cpan/build/F ont-AFM-1.19/blib/lib /
    root/.cpan/build/User-Identity-0.91/blib/arch /root/.cpan /build/User-
    Identity-0.91/blib/lib /root/.cpan/build/HTML-Format-2.04/blib/arch /
    root/.cpan/build/HTML-Format-2.04/blib/lib /root/.cpan/build/HTML-
    Tree-3.23/bli b/arch /root/.cpan/build/HTML-Tree-3.23/blib/lib /
    root/.cpan/build/Digest-SHA1-2 .11/blib/arch /root/.cpan/build/Digest-
    SHA1-2.11/blib/lib /root/.cpan/build/Mail -Box-Parser-C-3.006/blib/
    arch /root/.cpan/build/Mail-Box-Parser-C-3.006/blib/lib /root/.cpan/
    build/MIME-Types-1.19/blib/arch /root/.cpan/build/MIME-Types-1.19/b
    lib/lib /root/.cpan/build/Digest-HMAC-1.01/blib/arch /root/.cpan/build/
    Digest-HM AC-1.01/blib/lib /root/.cpan/build/IO-stringy-2.110/blib/
    arch /root/.cpan/build/ IO-stringy-2.110/blib/lib /root/.cpan/build/
    Object-Realize-Later-0.16/blib/arch /root/.cpan/build/Object-Realize-
    Later-0.16/blib/lib /root/.cpan/build/HTML-Pars er-3.56/blib/arch /
    root/.cpan/build/HTML-Parser-3.56/blib/lib /root/.cpan/build/ File-
    Remove-0.34/blib/arch /root/.cpan/build/File-Remove-0.34/blib/lib /
    root/.cp an/build/Mail-Transport-Dbx-0.07/blib/arch /root/.cpan/build/
    Mail-Transport-Dbx- 0.07/blib/lib /root/.cpan/build/Time-HiRes-1.9707/
    blib/arch /root/.cpan/build/Ti me-HiRes-1.9707/blib/lib to PERL5LIB.

    PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
    "execute_tests" is not exported by the Test::Harness module
    Can't continue after import errors at test.pl line 16
    BEGIN failed--compilation aborted at test.pl line 16.
    # Looks like your test died before it could output anything.
    make: *** [test_dynamic] Error 255
    /usr/bin/make test -- NOT OK

    I checked the Test::Harness module, but didn't find the
    "execute_tests" sub.
    Also I tried downloading the source code and the same errors as above
    are returned during "make" execution.

    I don't know where the problem is. There are tons of dependencies to
    have this module installed.

    Thanks.
    Michael Yang, May 31, 2007
    #1
    1. Advertising

  2. Michael Yang

    Sisyphus Guest

    "Michael Yang" <> wrote in message
    news:...
    ..
    ..
    > "execute_tests" is not exported by the Test::Harness module


    Looking at %prereq in the Mail::Box Makefile.PL you'll see that version 2.62
    (or later) of Test::Harness is required.
    I suspect you have an earlier version of Test::Harness that doesn't export
    "execute_tests" - as is the case with the version (2.56) of Test::Harness
    that I have.

    Updating Test::Harness should fix the problem.

    I would have thought that CPAN.pm would have detected this and first
    installed the latest version of Test::Harness before proceeding with
    building Mail::Box - but I don't use CPAN, so I don't really know what has
    happened there.

    Perhaps the latest version of Test::Harness *did* get installed, but into a
    different location than the old version, and the old version is still being
    found first ? (Dunno ... just speculating.)

    Cheers,
    Rob
    Sisyphus, May 31, 2007
    #2
    1. Advertising

  3. Michael Yang

    Michael Yang Guest

    On May 31, 2:14 pm, "Sisyphus" <> wrote:
    > "Michael Yang" <> wrote in message
    >
    > news:...
    > .
    > .
    >
    > > "execute_tests" is not exported by the Test::Harness module

    >
    > Looking at %prereq in the Mail::Box Makefile.PL you'll see that version 2.62
    > (or later) of Test::Harness is required.
    > I suspect you have an earlier version of Test::Harness that doesn't export
    > "execute_tests" - as is the case with the version (2.56) of Test::Harness
    > that I have.
    >
    > Updating Test::Harness should fix the problem.
    >
    > I would have thought that CPAN.pm would have detected this and first
    > installed the latest version of Test::Harness before proceeding with
    > building Mail::Box - but I don't use CPAN, so I don't really know what has
    > happened there.
    >
    > Perhaps the latest version of Test::Harness *did* get installed, but into a
    > different location than the old version, and the old version is still being
    > found first ? (Dunno ... just speculating.)
    >
    > Cheers,
    > Rob


    Terrific!
    Thanks a lot, Rob!

    After I updated the Test::Harness module, the Mail::Box is installed
    successfully.

    Thanks again!
    Michael Yang, May 31, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jaz
    Replies:
    2
    Views:
    207
    Anno Siegel
    May 6, 2005
  2. carl d.
    Replies:
    1
    Views:
    375
    A. Sinan Unur
    May 10, 2005
  3. Replies:
    5
    Views:
    184
    Randy Kobes
    Oct 12, 2005
  4. mike
    Replies:
    1
    Views:
    235
  5. Ben Bullock
    Replies:
    12
    Views:
    268
    Ben Bullock
    Jul 8, 2008
Loading...

Share This Page