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

Dear Monks and friends of Monks, I am attempting to install perl on FreeBSD 4.9 and I have done the following things:

Unpacked the tarball:

gunzip -c stable.tar.gz | tar -xvf -

Ran the install process:

rm -f config.sh Policy.sh// exits 0
sh Configure -de // exits 0
make // exits 0
make test// error

Here is the error I recieved:

Failed 1 test script out of 797, 99.87% okay. ### Since not all tests were successful, you may want to run some of ### them individually and examine any diagnostic messages they produce +. ### See the INSTALL document's section on "make test". ### You have a good chance to get more information by running ### ./perl harness ### in the 't' directory since most (>=80%) of the tests succeeded. ### You may have to set your dynamic library search path, ### LD_LIBRARY_PATH, to point to the build directory: ### setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness ### LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harn +ess ### export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness ### for csh-style shells, like tcsh; or for traditional/modern ### Bourne-style shells, like bash, ksh, and zsh, respectively. u=6.99219 s=2.40625 cu=375.859 cs=46.8203 scripts=797 tests=78801 *** Error code 1


So I scrolled up and found the error in the giant list of completed tests:

lib/Net/t/hostname...................Use of uninitialized value in str +ing eq at ../lib/Net/t/hostname.t line 39. Use of uninitialized value in string eq at ../lib/Net/t/hostname.t lin +e 39. FAILED at test 1


I followed the instructions and went to the "t" directory and called:

./perl harness// error

Here is the error I recieved:

Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- ../lib/Net/t/hostname.t 2 1 50.00% 1 (1 subtest UNEXPECTEDLY SUCCEEDED), 52 tests and 468 subtests skipped +. Failed 1/853 test scripts, 99.88% okay. 1/78812 subtests failed, 100.0 +0% okay.


Please oh mighty knowers of the Camel, how can I fix this?

Replies are listed 'Best First'.
Re: error when installing perl 5.8.3 on FreeBSD
by kappa (Chaplain) on Apr 14, 2004 at 05:59 UTC
    Try this:
    cd /usr/ports/net/p5-Net make cd work/libnet-1.18 make test
    It should theoretically fail at yours. Then you can send-pr the problem into FreeBSD gnats. You can also try this patch to update your lang/perl58 port to 5.8.3 and install perl from there.
Re: error when installing perl 5.8.3 on FreeBSD
by chromatic (Archbishop) on Apr 14, 2004 at 00:43 UTC

    I bet your computer doesn't have a hostname. Run hostname to see if I'm right.