Gossamer Forum
Home : General : Perl Programming :

LWP Install IO.pm conflict - Please help - should be easy

Quote Reply
LWP Install IO.pm conflict - Please help - should be easy
Hi, I'm modding links and it's been pretty plain sialing until now I need LWP functionality.

I already went and downloaded the following files from the net :

LWP_pm-5_02-2_i386.rpm
MD5_pm-1_7-3_i386.rpm
Net_pm-1_00-4_i386.rpm
IO_pm-1_15-3_i386.rpm

I am installing this on a local workstation first, since this is where I prepare my complete linksconfiguration before going live and copying it to my unix account at my ISP.

I am running an obsolete 486 with 64Mb, Redhat Linux 6.0 & apache & perl 5.00503-2 installed. I don't have much experience with linux yet, so I got me RHL6 Unleashed and did the following :

# rpm -ivh MD5_pm-1_7-3_i386.rpm
worked great

To get LWP installed, it said it also needed Net.pm & IO.pm

This is what happened when I tried to install these files ...
# rpm -ivh LWP_pm-5_02-2_i386.rpm
error: failed dependencies:
Net.pm >= 1.00 is needed by LWP.pm-5.02-2

# rpm -ivh Net_pm-1_00-4_i386.rpm
error: failed dependencies:
IO.pm >= 1.09 is needed by Net.pm-1.00-4

# rpm -ivh IO_pm-1_15-3_i386.rpm
error: file /usr/lib/perl5/man/man3/IO.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

error: file /usr/lib/perl5/man/man3/IO::File.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

error: file /usr/lib/perl5/man/man3/IO::Handle.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

error: file /usr/lib/perl5/man/man3/IO::Pipe.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

error: file /usr/lib/perl5/man/man3/IO::Seekable.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

error: file /usr/lib/perl5/man/man3/IO::Select.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

error: file /usr/lib/perl5/man/man3/IO::Socket.3
from install of IO.pm-1.15-3 conflicts
with file from package perl-5.00503-2

I think I can get Net.pm & LWP.pm to run if the IO.pm problem can be fixed... What should I do?

Best regards,

[This message has been edited by neurotech (edited October 30, 1999).]
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
I'm not Linux and I'm new to modules but it looks like you are trying to install an old LWP. libwww-perl-5.46 has the latest LWP stuff.

...don't know if this is what you want or not, one of these days I'll get off my but and install Linux.
ftp://ftp.cdrom.com/pub/linux/redhat/current/i386/RedHat/RPMS/w3c-libwww-5.2.8-4.i386.rpm

[This message has been edited by Dave (edited October 30, 1999).]
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
i had lotsa (well, a little, anyway) trouble installing the libwww modules... many of the web-based modules have dependencies... and crazy ones, too... looking in my home directory, here's a list of modules that i installed before i could install libwww:

libnet-1.0607
URI-1.04
MIME-Base64-2.11
HTML-Parser-2.23
Digest-MD5-2.04

i might not have installed all of those, or i might not have needed to... maybe i installed libwww && all those before i installed libnet... but install all of those, and your system should work... i'm also runnin RH6.0, but with perl 5.005_03

hmmm... you rpm them??? i don't trust rpms... i download the makefile dealies...

--Tom

[This message has been edited by garadon (edited October 30, 1999).]
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
Hi, thanks for the quick reply.

I have just downloaded the w3c-libwww file and installed it using rpm -ivh w3c-libwww-......

It seems to be installed. However, when I run the script I still get a server error. This is what it says in the errorlog :

[Sat Oct 30 21:55:57 1999] [error] [client 10.0.0.2] Premature end of script hea
ders: /home/httpd/cgi-bin/am-mj12/maxcomm.cgi
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i38
6-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/li
b/perl5/site_perl/5.005 .) at /home/httpd/cgi-bin/am-mj12/maxcomm.cgi line 31.
BEGIN failed--compilation aborted at /home/httpd/cgi-bin/am-mj12/maxcomm.cgi lin
e 31.
[Sat Oct 30 21:56:50 1999] [error] [client 10.0.0.2] Premature end of script hea
ders: /home/httpd/cgi-bin/am-mj12/maxcomm.cgi

Is there a way to check to make sure that LWP is really installed? Links itself also needs LWP and I think I haven't seen any changes there either.

(I am not that familiar yet with makefiles etc.. that's why I opted for rpm's at the moment, but I am determined to learn it as soon as I get my links site working)

Thanks for the help.
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
Um, to see the modules you have, you can go to cgi.resourceindex.com, and go to the Miscellaneous, and then Environment Variables i think, and they should have something there.
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
I got ms-env.pl from the site and installed it (substituting it with my perl path /usr/bin/perl) but I get an internal server error. Anything else I can do?

Thanks.
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
Dear garadon,

I decided to give makefiles a try (following the guidelines on cpan) and downloaded all of the modules you suggested.. It worked!!!! Smile Smile Smile

Thanks so much. Now I can finally get back to the rest of my links project!.

All the best from Europe
Quote Reply
Re: LWP Install IO.pm conflict - Please help - should be easy In reply to
For future reference, try:

perl -MCPAN -e shell

from telnet. Follow the setup info, and just enter:

install Bundel::libnet

and it will install LWP + all dependencies automagically.

Cheers,

Alex