develooper Front page | perl.libwww | Postings from November 2001

Installation Problem on Linux 6.5

From:
Jeffrey Richardson
Date:
November 27, 2001 10:01
Subject:
Installation Problem on Linux 6.5
Message ID:
3C03D475.97E32EBA@link.com
I am having a problem installing libwww-perl under RedHat Linux 6.5.
Can you offer any suggestions?

I installed the pre-reqs per the README file:

PREREQUISITES
In order to install and use this package you will need Perl version
5.005 or better.  Some modules within this package depend on other
packages that are distributed separately from Perl.  We recommend that
you have the following packages installed before you install
libwww-perl:

  URI
  MIME-Base64
  HTML-Parser
  libnet
  Digest-MD5

I installed Bundle-libnet-1.00, which is supposed to include Net::FTP.
But when I did the "make test" step I got the following:

jeff @ daisey : /rhome/jeff/pm/libwww-perl-5.61   Wed Nov 21
1037>perl Makefile.PL

You appear to be directly connected to the Internet.  I have some tests
that tries to access some sites on the net to verify that the new
HTTP/1.1
support works as it should.

Do you want to enable these tests? [y] y

This package comes with some sample programs that I can try
to install in .

   Note that you can avoid these questions by passing
   the '-n' option to 'Makefile.PL'.

Do you want to install lwp-request? [y]
Do you want to install lwp-mirror? [y]
Do you want to install lwp-rget? [y]
Do you want to install lwp-download? [y]

The lwp-request program will use the name it is invoked with to
determine what HTTP method to use.  I can set up alias for the most
common HTTP methods.  These alias are also installed in
..

Do you want to install the GET alias? [y]
Do you want to install the HEAD alias? [y]
Do you want to install the POST alias? [y]

Checking for URI........... ok
Checking for HTML::Parser.. ok
Checking for MIME::Base64.. ok
Checking for Net::FTP...... failed
Can't locate Net/FTP.pm in @INC (@INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005
..) at Makefile.PL line 169, <STDIN> chunk 8.

The libwww-perl library normally use the Net::FTP module when
accessing ftp servers.  You would have to install this package or
configure your application to use a proxy server for making ftp
requests work.  Net::FTP is part of the 'libnet' distribution.

Checking for Digest::MD5 .. ok
The missing modules can be obtained from CPAN.  Visit
<URL:http://www.perl.com/CPAN/> to find a CPAN site near you.


Checking if your kit is complete...
Looks good
Warning: prerequisite Net::FTP 2.58 not found at (eval 6) line 228.
Writing Makefile for libwww-perl

jeff @ daisey : /rhome/jeff/pm/libwww-perl-5.61   Wed Nov 21
1038>make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/libwww-perl
mkdir blib/lib/auto
mkdir blib/lib/auto/libwww-perl
mkdir blib/man1
mkdir blib/man3
cp lib/HTTP/Request/Common.pm blib/lib/HTTP/Request/Common.pm
cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm
cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm
cp lib/LWP/Protocol/https.pm blib/lib/LWP/Protocol/https.pm
cp lib/Net/HTTP.pm blib/lib/Net/HTTP.pm
cp lib/HTTP/Headers/Util.pm blib/lib/HTTP/Headers/Util.pm
cp lib/HTTP/Request.pm blib/lib/HTTP/Request.pm
cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm
cp lib/HTTP/Response.pm blib/lib/HTTP/Response.pm
cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm
cp lib/HTTP/Daemon.pm blib/lib/HTTP/Daemon.pm
cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/WWW/RobotRules.pm blib/lib/WWW/RobotRules.pm
cp lib/File/Listing.pm blib/lib/File/Listing.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm
cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm
cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm
cp lib/HTTP/Headers/Auth.pm blib/lib/HTTP/Headers/Auth.pm
cp lib/HTTP/Negotiate.pm blib/lib/HTTP/Negotiate.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm
cp lib/LWP.pm blib/lib/LWP.pm
cp lib/HTTP/Status.pm blib/lib/HTTP/Status.pm
cp lib/HTTP/Message.pm blib/lib/HTTP/Message.pm
cp lib/Net/HTTP/NB.pm blib/lib/Net/HTTP/NB.pm
cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm
cp lib/LWP/Protocol/https10.pm blib/lib/LWP/Protocol/https10.pm
cp lib/LWP/MediaTypes.pm blib/lib/LWP/MediaTypes.pm
cp lib/HTML/Form.pm blib/lib/HTML/Form.pm
cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm
cp lib/Net/HTTP/Methods.pm blib/lib/Net/HTTP/Methods.pm
cp lib/LWP/media.types blib/lib/LWP/media.types
cp lib/HTTP/Headers/ETag.pm blib/lib/HTTP/Headers/ETag.pm
cp lib/HTTP/Cookies.pm blib/lib/HTTP/Cookies.pm
cp lib/Bundle/LWP.pm blib/lib/Bundle/LWP.pm
cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm
cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm
cp lwpcook.pod blib/lib/lwpcook.pod
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm
cp lib/LWP/Protocol/http10.pm blib/lib/LWP/Protocol/http10.pm
cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm
cp lib/Net/HTTPS.pm blib/lib/Net/HTTPS.pm
cp lib/HTTP/Headers.pm blib/lib/HTTP/Headers.pm
cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm
cp lib/HTTP/Date.pm blib/lib/HTTP/Date.pm
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/WWW/RobotRules/AnyDBM_File.pm
blib/lib/WWW/RobotRules/AnyDBM_File.pm
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 bin/lwp-download.PL bin/lwp-download
Extracting lwp-download (with variable substitutions)
mkdir blib/script
cp bin/lwp-download blib/script/lwp-download
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
blib/script/lwp-download
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 bin/lwp-request.PL bin/lwp-request
Extracting lwp-request (with variable substitutions)
cp bin/lwp-request blib/script/lwp-request
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
blib/script/lwp-request
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 bin/lwp-rget.PL bin/lwp-rget
Extracting lwp-rget (with variable substitutions)
cp bin/lwp-rget blib/script/lwp-rget
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
blib/script/lwp-rget
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 bin/lwp-mirror.PL bin/lwp-mirror
Extracting lwp-mirror (with variable substitutions)
cp bin/lwp-mirror blib/script/lwp-mirror
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
blib/script/lwp-mirror
Manifying blib/man1/lwp-download.1
Manifying blib/man3/HTTP::Request::Common.3
Manifying blib/man1/lwp-mirror.1
Manifying blib/man3/LWP::Protocol.3
Manifying blib/man3/Net::HTTP.3
Manifying blib/man3/HTTP::Request.3
Manifying blib/man3/HTTP::Headers::Util.3
Manifying blib/man3/HTTP::Response.3
Manifying blib/man3/LWP::RobotUA.3
Manifying blib/man1/lwp-request.1
Manifying blib/man3/HTTP::Daemon.3
Manifying blib/man3/WWW::RobotRules.3
Manifying blib/man3/LWP::Debug.3
Manifying blib/man3/File::Listing.3
Manifying blib/man3/HTTP::Negotiate.3
Manifying blib/man3/LWP::UserAgent.3
Manifying blib/man3/HTTP::Status.3
Manifying blib/man3/LWP.3
Manifying blib/man3/HTTP::Message.3
Manifying blib/man3/Net::HTTP::NB.3
Manifying blib/man3/LWP::MediaTypes.3
Manifying blib/man3/HTML::Form.3
Manifying blib/man3/HTTP::Cookies.3
Manifying blib/man3/Bundle::LWP.3
Manifying blib/man3/LWP::MemberMixin.3
Manifying blib/man3/lwpcook.3
Manifying blib/man3/LWP::ConnCache.3
Manifying blib/man1/lwp-rget.1
Manifying blib/man3/HTTP::Headers.3
Manifying blib/man3/LWP::Simple.3
Manifying blib/man3/HTTP::Date.3
Manifying blib/man3/WWW::RobotRules::AnyDBM_File.3
/usr/bin/perl -e 'use Config; chdir q{blib/script}; foreach (qw(GET HEAD
POST)) {' \
-e 'unlink "$_";' \
-e 'system("$Config{\"lns\"} lwp-request $_") && die; }'

jeff @ daisey : /rhome/jeff/pm/libwww-perl-5.61   Wed Nov 21
1039>make test
/usr/bin/perl -e 'use Config; chdir q{blib/script}; foreach (qw(GET HEAD
POST)) {' \
-e 'unlink "$_";' \
-e 'system("$Config{\"lns\"} lwp-request $_") && die; }'
/usr/bin/perl t/TEST 0
base/common-req.....ok
base/cookies........ok
base/date...........ok
base/headers-auth...ok
base/headers-etag...ok
base/headers........ok
base/headers-util...ok
base/listing........ok
base/mediatypes.....ok
base/message........ok
base/negotiate......ok
base/response.......ok
base/status.........ok
base/ua.............ok
html/form...........ok
robot/rules-dbm.....ok
robot/rules.........ok
robot/ua............ok
local/autoload......ok
local/get...........ok
local/http..........ok
local/protosub......ok
live/activestate....Net::HTTP: Bad peer address at live/activestate.t
line 7
Net::HTTP: Bad peer address at live/activestate.t line 7.
dubious
 Test returned status 9 (wstat 2304, 0x900)
Constant subroutine __stub_lgammal redefined at
/usr/lib/perl5/5.00503/i386-linux/gnu/stubs.ph line
58.
Constant subroutine __stub_lgammal_r redefined at
/usr/lib/perl5/5.00503/i386-linux/gnu/stubs.ph lin
e 64.
Constant subroutine __need_size_t undefined at
/usr/lib/perl5/5.00503/i386-linux/stddef.ph line 131.
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/5.00503/Test/Harness.pm line
 288.
make: *** [test] Error 9




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About