Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LWP for Perl 5.8.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
X-SoCiaL
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 160
Location: Filipstad/Sweden

PostPosted: Tue Jul 30, 2002 7:47 pm    Post subject: LWP for Perl 5.8.0 Reply with quote

Hi to ya all again =)

Ive unmasked Perl 5.8.0 and installed and now Im trying to get LWP(libwww) to install. If I use the libwww pack in the portagetree it fails at compiletime so I tried to get it with the interactive CPAN shell but seam to run into problems on this path to. Im no Perl guru and dont have a clue on whats the problem. Can it be that LWP aint updated yet for Perl 5.8.0?

By the way ... the command Ive used to try to get LWP via interactiv CPAN is as follows:

Code:

# perl -MCPAN -e shell
cpan> install Bundle::LWP


/X[/code]
_________________
~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~
: Would I do it if I couldnt do it with a computer?
~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~
Back to top
View user's profile Send private message
X-SoCiaL
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 160
Location: Filipstad/Sweden

PostPosted: Tue Jul 30, 2002 8:17 pm    Post subject: Reply with quote

I solved it =)

What I did was to pull down HTML::Parser and HTML::Tagset before pulling Bundle::LWP.

Worked like a charm.

/X
_________________
~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~
: Would I do it if I couldnt do it with a computer?
~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~
Back to top
View user's profile Send private message
oregonshoegazer
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2002
Posts: 84

PostPosted: Fri Aug 23, 2002 6:26 am    Post subject: LWP for perl Reply with quote

i'm having difficulties installing the LWP bundle as well. i tried following the steps given here, but to no avail. i'm certainly no perl expert, and this is my first experience with cpan. here is my output from trying

Code:
cpan> install HTML::Parser
HTML::Parser is up to date.

cpan> install HTML::Tagset
HTML::Tagset is up to date.


Code:
  cpan> install Bundle::LWP
MIME::Base64 is up to date.
Digest::MD5 is up to date.
URI is up to date.
Net::FTP is up to date.
HTML::Tagset is up to date.
HTML::Parser is up to date.
HTML::HeadParser is up to date.
Running install for module LWP
Running make for G/GA/GAAS/libwww-perl-5.65.tar.gz
  Is already unwrapped into directory /root/.cpan/build/libwww-perl-5.65
Has already been processed within this session
Running make test
/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-util...ok                                                       
base/headers........ok                                                       
base/http...........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............NOK 7HTTP Server terminated                             
robot/ua............FAILED tests 1-3, 5, 7                                   
        Failed 5/7 tests, 28.57% okay
local/autoload......ok                                                       
local/get...........ok                                                       
local/http..........NOK 8Can't call method "is_redirect" on an undefined value at local/http.t line 188, <DAEMON> line 1.
HTTP Server terminated
local/http..........dubious                                                 
        Test returned status 111 (wstat 28416, 0x6f00)
DIED. FAILED tests 1-18
        Failed 18/18 tests, 0.00% okay
local/protosub......ok                                                       
Failed Test  Status Wstat Total Fail  Failed  List of Failed
--------------------------------------------------------------------------------
local/http.t     111 28416    18   18 100.00%  1-18
robot/ua.t                     7    5  71.43%  1-3, 5, 7
Failed 2/23 test scripts, 91.30% okay. 23/302 subtests failed, 92.38% okay.
make: *** [test] Error 29
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Bundle summary: The following items in bundle Bundle::LWP had installation
problems:
  LWP


can anyone offer help on this?

thanks.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Aug 23, 2002 6:28 am    Post subject: Reply with quote

oregonshoegazer, are you using perl 5.8.0 also?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
X-SoCiaL
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 160
Location: Filipstad/Sweden

PostPosted: Fri Aug 23, 2002 9:57 am    Post subject: Reply with quote

Since my last post I have backed down to 5.6.1 again ... to many obsticles with 5.8.0 at the moment ... Ive reported some bugs at the gentoo bug center and they are workin to fix the 5.8.0 issues.

Guess we have to show some patience.

/X
_________________
~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~
: Would I do it if I couldnt do it with a computer?
~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~'¨'~
Back to top
View user's profile Send private message
oregonshoegazer
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2002
Posts: 84

PostPosted: Fri Aug 23, 2002 4:35 pm    Post subject: perl version Reply with quote

no, actually, i'm using 5.6.1 too. is LWP unavailable with that version?

thanks.
Back to top
View user's profile Send private message
oregonshoegazer
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2002
Posts: 84

PostPosted: Mon Sep 02, 2002 10:57 pm    Post subject: Reply with quote

i did some poking around on other forums, and these tests failed due to my hostname being incorrectly set.

i had to
(1) change hostname to "localhost"
and
(2) add the following code to the LWP library file .../perl5/5.6.1/LWP/UserAgent.pm
Code:

use strict;

## added this line
use URI::URL;
## end added code


that took care of the URI complaints i was getting.
Back to top
View user's profile Send private message
ghost_o
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 119

PostPosted: Tue Sep 03, 2002 5:11 am    Post subject: Reply with quote

I have 5.6.1(portage), 5.8.0(self compiled), and 5.8.0(portage) installed currently. I always use the CPAN modules for installing my modules, but had no problems with any of the three versions I have running getting LWP to install.. I use the Bundle::LWP to install it. I wrote a script that uses LWP and threads and the module even works fine in a threaded environment. ( I was happy about that)

Second thought - after reading the error message, it sounds like you may have Parallel::UA installed? I remember those errors when I tried to get Parallel::UA installed alongside LWP version .65. It would only go with .64..

-G
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum