|
Posted by Bern on September 19, 2004, 9:56 pm
Please log in for more thread options
I got errors while trying to get the URI module.
cpan> install URI
Running install for module URI
Running make for G/GA/GAAS/URI-1.32.tar.gz
Is already unwrapped into directory /root/.cpan/build/URI-1.32
Has already been processed within this session
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/abs............ok
t/clone..........ok
t/data...........ok
t/escape.........ok
t/file...........ok
t/ftp............ok
t/generic........ok
t/heuristic......FAILED test 7
Failed 1/15 tests, 93.33% okay
t/http...........ok
t/ldap...........ok
t/mailto.........ok
t/mix............ok
t/mms............ok
t/news...........ok
t/old-absconf....ok
t/old-base.......ok
t/old-file.......ok
t/old-relbase....ok
t/pop............ok
t/query-param....ok
t/query..........ok
t/rel............ok
t/rfc2732........ok
t/roy-test.......ok
t/rsync..........ok
t/rtsp...........ok
t/sip............ok
t/split..........ok
t/storable.......ok
t/urn-isbn.......skipped
all skipped: Needs the Business::ISBN module installed
t/urn-oid........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/heuristic.t 15 1 6.67% 7
1 test skipped.
Failed 1/31 test scripts, 96.77% okay. 1/466 subtests failed, 99.79%
okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
How can we fix this problem?
|
|
Posted by Jim Keenan on September 20, 2004, 7:15 am
Please log in for more thread options
bfay@deepcosmos.ca (Bern) wrote in message
> I got errors while trying to get the URI module.
>
>> t/heuristic......FAILED test 7
> Failed 1/15 tests, 93.33% okay
[snip]
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> t/heuristic.t 15 1 6.67% 7
> 1 test skipped.
> Failed 1/31 test scripts, 96.77% okay. 1/466 subtests failed, 99.79%
> okay.
> make: *** [test_dynamic] Error 255
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
>
>
> How can we fix this problem?
I get the same failure testing on MSWin32, Perl 5.8.0.
Checking the test suite, test 7 under heuristic reads:
$URI::Heuristic::MY_COUNTRY = "uk";
print "not " unless uf_urlstr("perl/camel.gif") =~
m,^http://www.perl.(org|co).uk/camel.gif$,;
print "ok 7n";
I don't have time at the moment to go through the code thoroughly, but
the test may be failing because neither of the URIs possible from
inside the pattern are currently available:
http://www.perl.co.uk/camel.gif http://www.perl.org.uk/camel.gif
Jim Keenan
|
|
Posted by Jim Keenan on September 21, 2004, 1:00 am
Please log in for more thread options Bern wrote:
> I got errors while trying to get the URI module.
>
> cpan> install URI
> Running install for module URI
> Running make for G/GA/GAAS/URI-1.32.tar.gz
> Is already unwrapped into directory /root/.cpan/build/URI-1.32
> Has already been processed within this session
[snip]
> t/heuristic......FAILED test 7
> Failed 1/15 tests, 93.33% okay
[snip]
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> t/heuristic.t 15 1 6.67% 7
> 1 test skipped.
> Failed 1/31 test scripts, 96.77% okay. 1/466 subtests failed, 99.79%
> okay.
> make: *** [test_dynamic] Error 255
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
>
>
> How can we fix this problem?
My earlier explanation was probably wrong, though perhaps not totally.
I've been staring at this for a couple of hours and have noted that (a)
the version you are using is *not* the most recent version -- the author
has uploaded a v1.33 -- and (b) one of the changes he made in 1.33 was a
correction to the test in question in test file 'heuristic.t'.
So why not give v1.33 a try!
HTH!
jimk
|
|
Posted by Jim Keenan on September 21, 2004, 1:04 am
Please log in for more thread options Jim Keenan wrote:
> one of the changes he made in 1.33 was a
> correction to the test in question in test file 'heuristic.t'.
>
I should have included this link to search.cpan.org's marvelous 'diff'
tool, which revealed this factoid to me:
http://search.cpan.org/diff?from=URI-1.32&to=URI-1.33#t/heuristic.t
jimk
|
|
Posted by Jim Keenan on September 21, 2004, 6:55 am
Please log in for more thread options >
> So why not give v1.33 a try!
>
Note: URI v1.33 was just uploaded to CPAN on Sept 19, Sunday. As of
the time of this posting, it has not been propagaged to all CPAN
mirrors. On my Windows box at work I'm using a mirror which only has
v1.32: the version that gave both the OP and me errors on the 7th
test in 'heuristic.t'. On my Darwin box at home I'm using cpan.org,
which has v1.33. That tests A-OK! If nothing else, you can download
the tarball of v1.33 and manually install the distribution through the
usual sequence.
Jim Keenan
|
| Similar Threads | Posted | | CPAN IPC::Run Problem | February 17, 2005, 1:47 pm |
| Problem with CPAN and tar file headers | May 16, 2007, 4:57 am |
| Getting a module on CPAN | June 7, 2007, 4:28 pm |
| adding a new module to CPAN | September 30, 2004, 3:06 am |
| how do I package a CPAN module? | October 23, 2004, 1:13 pm |
| It's not PHP, is it? (potential new CPAN module) | July 21, 2007, 3:16 am |
| CPAN Errors Installing Tk Module | November 26, 2004, 9:56 pm |
| Installing a CPAN Module online | June 26, 2005, 8:45 pm |
| New CPAN module integration of Authcookie with PAM | February 6, 2006, 6:29 am |
| CPAN module validation process | July 19, 2007, 3:58 pm |
|