Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

trouble installing LWP and SVN::Core

by bluethundr (Pilgrim)
on Jun 12, 2014 at 03:06 UTC ( [id://1089636]=perlquestion: print w/replies, xml ) Need Help??

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

Hello Monks,
My goal is to get SVN::Core installed which relies on two things: sqlite3 and LWP.
When I went to install SVN::Core from CPAN it complained about both. So I downloaded sqlite3 manually and installed it manually and got past that point.

But with LWP it keeps failing. Whether I try installing it via CPAN or download and install it manually.

If I try installing it via CPAN this is what I see:
MIME::Base64 is up to date (3.14). Digest::MD5 is up to date (2.53). URI is up to date (1.60). Net::FTP is up to date (2.79). HTML::Tagset is up to date (3.20). HTML::Parser is up to date (3.71). HTML::HeadParser is up to date (3.71). Running install for module 'LWP' MSCHILLI/libwww-perl-6.06.tar.gz Has already been unwrapped into directory /root/.cpan/build/MSCHILLI +-_QegDo MSCHILLI/libwww-perl-6.06.tar.gz Had problems unarchiving. Please build manually

And if I go to /root/.cpan/build/MSCHILLI this is what I see:
[root@uszmpaplp005lc MSCHILLI-_QegDo]# ls libwww-perl-6.06 libwww-perl-6.06.tar

It looks like it was able to download libwww-perl-6.06.tar. But if I remove the directory and try to expand the archive it looks like the archive is corrupt:
[tar: Ignoring unknown extended header keyword `SCHILY.dev' tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended header keyword `SCHILY.nlink' libwww-perl-6.06/bin/lwp-download tar: Ignoring unknown extended header keyword `SCHILY.dev' tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended header keyword `SCHILY.nlink' libwww-perl-6.06/bin/lwp-dump libwww-perl-6.06/bin/lwp-mirror libwww-perl-6.06/bin/lwp-request tar: Error exit delayed from previous errors

And if I download the archive manually from cpan and try to expand it, I get the exact same result. So it looks to me that the archive of this module itself is corrupt on CPAN. If I understand the situation correctly.
So how exactly can I get this module installed so that I can proceed with SVN::Core?

Replies are listed 'Best First'.
Re: trouble installing LWP and SVN::Core
by Anonymous Monk on Jun 12, 2014 at 03:30 UTC
      HI! And thanks for getting back to me. Your ptar suggestion worked like a charm! But when I got past perl Makefile.PL to make and then make test, LWP complained that I was missing a couple of perl modules:
      HTTP::Daemon WWW::RobotRules
      So then I tried installing those using CPAN and that worked! So then I tried perl Makefile.PL, make and make test again and this is where the process is leaving me:
      [root@host libwww-perl-6.06]# make test /usr/local/bin/perl t/TEST 0 base/protocols.t ...... ok base/ua.t ............. 1/35 # Test 33 got: <UNDEF> (base/ua.t at line + 103) # Expected: "http://example.com" # base/ua.t line 103 is: ok($ua->proxy('http'), "http://example.com") +; Attempt to reload LWP/Protocol/http.pm aborted. Compilation failed in require at (eval 14) line 2. base/ua.t ............. Dubious, test returned 2 (wstat 512, 0x200) Failed 3/35 subtests robot/ua-get.t ........ 3/8 HTTP Server terminated robot/ua-get.t ........ Failed 5/8 subtests robot/ua.t ............ 3/7 HTTP Server terminated robot/ua.t ............ Failed 5/7 subtests local/autoload-get.t .. ok local/autoload.t ...... ok local/get.t ........... Attempt to reload LWP/Protocol/http.pm aborted +. Compilation failed in require at (eval 9) line 2. Compilation failed in require at local/get.t line 33. BEGIN failed--compilation aborted at local/get.t line 33. local/get.t ........... Dubious, test returned 2 (wstat 512, 0x200) No subtests run local/http.t .......... 1/63 # Failed test 'response code 404' # at local/http.t line 81. # got: '501' # expected: '404' # Failed test '404 message' # at local/http.t line 82. # 'Protocol scheme 'http' is not supported' # doesn't match '(?^i:not\s+found)' # Failed test at local/http.t line 84. # Failed test at local/http.t line 85. # Failed test at local/http.t line 112. # Failed test 'status code 200' # at local/http.t line 113. # got: '501' # expected: '200' # Failed test 'message OK' # at local/http.t line 114. # got: 'Attempt to reload LWP/Protocol/http.pm aborted. # Compilation failed in require' # expected: 'OK' # Failed test at local/http.t line 119. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^From:\s*gisle\@aas\.no\n)' # Failed test at local/http.t line 120. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^Host:)' # Failed test '3 items in accept' # at local/http.t line 121. # got: '0' # expected: '3' # Failed test at local/http.t line 122. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^Accept:\s*text/html)' # Failed test at local/http.t line 123. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^Accept:\s*text/plain)' # Failed test at local/http.t line 124. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^Accept:\s*image/\*)' # Failed test at local/http.t line 125. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^If-Modified-Since:\s*\w{3},\s+\d+)' # Failed test at local/http.t line 126. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^Long-Text:\s*This.*broken between)' # Failed test at local/http.t line 127. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^Foo-Bar:\s*1\n)' # Failed test at local/http.t line 128. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^X-Foo:\s*Bar\n)' # Failed test at local/http.t line 129. # '501 Attempt to reload LWP/Protocol/http.pm aborte +d. # Compilation failed in require # ' # doesn't match '(?^m:^User-Agent:\s*Mozilla/0.01)' # Failed test 'response code 200' # at local/http.t line 139. # got: '501' # expected: '200' # Failed test 'response code 200' # at local/http.t line 160. # got: '501' # expected: '200' # Failed test 'response code 200' # at local/http.t line 182. # got: '501' # expected: '200' # Failed test at local/http.t line 212. # Failed test '147 content length' # at local/http.t line 214. # got: undef # expected: '147' # Failed test 'En prve' # at local/http.t line 215. # Failed test 'response code 404' # at local/http.t line 222. # got: '501' # expected: '404' # Failed test at local/http.t line 243. Can't call method "is_redirect" on an undefined value at local/http.t +line 245, <DAEMON> line 1. # Looks like you planned 63 tests but ran 36. # Looks like you failed 26 tests of 36 run. # Looks like your test exited with 25 just after 36. HTTP Server terminated local/http.t .......... Dubious, test returned 25 (wstat 6400, 0x1900) Failed 53/63 subtests local/protosub.t ...... ok Test Summary Report ------------------- base/ua.t (Wstat: 512 Tests: 33 Failed: 1) Failed test: 33 Non-zero exit status: 2 Parse errors: Bad plan. You planned 35 tests but ran 33. robot/ua-get.t (Wstat: 0 Tests: 8 Failed: 5) Failed tests: 1-3, 5, 7 robot/ua.t (Wstat: 0 Tests: 7 Failed: 5) Failed tests: 1-3, 5, 7 local/get.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output local/http.t (Wstat: 6400 Tests: 36 Failed: 26) Failed tests: 2-20, 22, 25, 27, 29-30, 33, 35 Non-zero exit status: 25 Parse errors: Bad plan. You planned 63 tests but ran 36. Files=9, Tests=98, 30 wallclock secs ( 0.04 usr 0.02 sys + 0.62 cusr + 0.05 csys = 0.73 CPU) Result: FAIL Failed 5/9 test programs. 37/98 subtests failed. make: *** [test] Error 255
      I think the problem at this point is with one of the HTTP modules. But I don't really know how to approach that error. Any help or monk wisdom here would be appreciated!
Re: trouble installing LWP and SVN::Core
by oiskuu (Hermit) on Jun 12, 2014 at 14:53 UTC

    There are tickets on this problem rt://94844, rt://53714.

    Release tarballs ought to be sanitized (single toplevel folder; sane permissions, times; stripped or plain usernames/uids).
    Also, for maximum compatibility, it is recommended that ustar format be selected:

    tar --format ustar ...
    
    Both GNU tar and bsdtar recognize this option.

      Ok thanks guys! I've actually gotten over the hurdle of getting LWP installed.
      [root@uszmpaplp005lc ~]# perl -e 'while (<@INC>) { while (<$_/*.pm>) { + print "$_\n"; } }' | grep -i lwp /usr/local/lib/perl5/site_perl/5.20.0/LWP.pm


      And I'm now to a point where I can attempt to install SVN::Core. And when I do I cam running into a new error:
      checking for APR-util... no configure: WARNING: APRUTIL not found The Apache Portable Runtime Utility (APRUTIL) library cannot be found. Either install APRUTIL on this system and supply the appropriate --with-apr-util option or get it with SVN and put it in a subdirectory of this source: svn co \ http://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x \ apr-util Run that right here in the top level of the Subversion tree. Afterwards, run apr-util/buildconf in that subdirectory and then run configure again here. configure: error: no suitable APRUTIL found configuring SVN failed at inc/My/SVN/Builder.pm line 118, <STDIN> line + 3. Something went wrong with the Subversion configuration. Please attempt to correct it and re-run Build.PL. Warning: No success on command[/usr/local/bin/perl Build.PL] MSCHWERN/Alien-SVN-v1.7.17.1.tar.gz /usr/local/bin/perl Build.PL -- NOT OK


      It looks like at this point the installation process can't find my APRUTIL install.

      I do have RPM installs of apr and apr-util installed.
      root@uszmpaplp005lc Alien-SVN-v1.7.17.1# rpm -qa | grep apr
      apr-1.2.7-11.el5_6.5
      apr-util-1.4.1-2.1
      apr-devel-1.2.7-11.el5_6.5
      


      Can someone please help me get past this point? Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1089636]
Approved by boftx
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found