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!
|