theloanarranger has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
Today I setup the CPAN module and used it to install a few modules. After a few successful installations I attempted to install libwww. While in the CPAN interactive shell I called:

install LWP

Then I received this error:

.... # this is an exert local/http.............ok local/protosub.........ok live/activestate.......ok live/apache-listing....Use of uninitialized value in pattern match (m +//) at ../blib/lib/File/Listing.pm line 77. Use of uninitialized value in split at ../blib/lib/File/Listing.pm li +ne 91. live/apache-listing....FAILED test 5 Failed 1/8 tests, 87.50% okay live/jigsaw-auth-b.....ok live/jigsaw-auth-d.....ok live/jigsaw-chunk......ok .... .... # a few more tests complete .... # then the final error report .... Failed Test Stat Wstat Total Fail Failed List of Failed --------------------------------------------------------------------- +---------- live/apache-listing.t 8 1 12.50% 5 Failed 1/41 test scripts, 97.56% okay. 1/761 subtests failed, 99.87% +okay. *** Error code 2 Stop in /root/.cpan/build/libwww-perl-5.800. /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force

After noticing that it was an apache test that failed I went and shutdown my apache1.3 server and re-ran the LWP install only to receive the same results. In the past I had apache 2 installed but removed it and installed 1.3 (FreeBSD however leaves all of the /usr/local/etc/apache2 files where they are). Currently I am running FreeBSD 4.10 and Perl 5.8.2.

Thank you for taking the time to read and I hope you can help,

-loan
-chicago, IL
-usa

Replies are listed 'Best First'.
Re: installing libwww on FreeBSD 4.10
by naChoZ (Curate) on Jul 29, 2004 at 05:02 UTC

    If you're using FreeBSD, you don't need to rely on the CPAN module for installing common modules. So, first make sure you don't already have libwww installed. pkg_info -I -x libwww. If you do, deinstall it. Then install it fresh, portinstall p5-libwww. After that, you'll be able to keep it updated with portversion. portversion -vR p5-libwww will check the version of not only libwww, but all modules upon which it depends. If you can find some that need upgrading, you can tell portversion to make it's output a usable shell script, which you can pipe right to sh.

    portversion -vR -x perl -c libwww | sh

    I recommend the -x perl so it doesn't just go ahead and upgrade perl itself whenever the perl port gets updated.

    --
    "A long habit of not thinking a thing wrong, gives it a superficial appearance of being right." -- Thomas Paine
    naChoZ

Re: installing libwww on FreeBSD 4.10
by eserte (Deacon) on Aug 18, 2004 at 10:36 UTC
    The "live" tests may break every now and then because they depend on live websites which may change, or be inaccessible while doing the test. It has nothing to do with your own web server. Just ignore the error and install the module anyway.