Re: Error when running LWP
Octavian Rasnita [EMAIL PROTECTED] writes: Hi all, I have recieved the following error when I tried to run a simple script that only downloads and prints a page. The script runs fine under Windows, but It give this error when running under Linux. Do you know which could be the cause for this error? Please tell me how can I solve it. The error is: Can't locate auto/Compress/Zlib/autosplit.ix in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/5.8.0/AutoLoader.pm line 158. at /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm line 16 It looks like Compress::Zlib is not properly installed on the system. LWP will try to load it if it is available. I bet you get a similar error with: perl -MCompress::Zlib -e1 To fix this situation either remove /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm or reinstall Compress::Zlib. --Gisle
Re: Error when running LWP
Oh yes, this was the problem, but I have seen that something happened to my Perl installation because I was not able to install Compress::Zlib because another module is missing and I am sure it could be more modules damaged, so I have tried to reinstall from a .rpm package. When I have used the -i option it told me that Perl 5.8.3 is already installed, even though I know I have only Perl 5.8.0 installed. I also tried to uninstall it using the -e parameter, but it told me that Perl 5.8.3 is not installed. I have tried to upgrade it using the -U parameter, but it told me that some files cannot be found and it did not continued. Please tell me how to install Perl 5.8.3 under Linux from a .rpm package in this situation over the previous one, or how to remove that version than install the new one. Thank you very much. Teddy From: Gisle Aas [EMAIL PROTECTED] It looks like Compress::Zlib is not properly installed on the system. LWP will try to load it if it is available. I bet you get a similar error with: perl -MCompress::Zlib -e1 To fix this situation either remove /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm or reinstall Compress::Zlib. --Gisle