Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: installing perl module

by Anonymous Monk
on Apr 10, 2013 at 07:49 UTC ( #1027916=note: print w/replies, xml ) Need Help??

in reply to installing perl module

If you system is in good shape cpanp -i LWP or cpan -i LWP gets you LWP

Maybe you even already have LWP :)

Replies are listed 'Best First'.
Re^2: installing perl module
by arthurs (Novice) on Apr 10, 2013 at 13:31 UTC

    I am using RedHat Linux 6.0 with perl v5.10.1. I don’t have ‘make’ in /usr/bin or anywhere else. The version of Linux we use is a stripped down version where rpms/files that were deemed unnecessary have been removed (maybe that’s why ‘make’ is missing). I do have LWP installed, but when I try to use it I get ‘501 Protocol shceme ‘http’ is not supported’ error. From what I read on the web, this could mean that LWP may not be properly installed (given that my code is correct). That’s why I am trying to reinstall LWP module (I downloaded libwww-perl-6.05.tar.gz from cpan), but for that I need ExtUtils-MakeMaker module to be installed. Running ‘perl –V:make’ gives me make=’make’. So, where do I get ‘make’ if it’s missing?

    Thanks much

      OK, I found and installed make rpm. Now I do have /usr/bin/make. However, when I run make, I get "No rule to make target /usr/lib64/perl5/CORE/config.h needed by Makefile."

      Any idea how to proceed from here?

      I realize this may not be a perl question per say anymore. So if you think I should stop wasting your time, please let me know.

      Thank you.

        To fix 'no rule to make config.h' error, I had to install a few of perl rpms such as perl-devel, perl-ExtUtils-MakeMaker, perl-ExtUtils-ParseXS, perl-Test-Harness. After that I was able to install ExtUtils-MakeMaker perl library. Now I am trying to reinstall LWP library, but make showed warnings that couldn't find prerequisite Encode::Locale, File::Listing, HTML::Entities and a lot of others. I am going to try to get them from cpan and after installing them, will try to install LWP again.

        Just so my efforts are not in vain, could somebody confirm that when running a perl script I get an error "501 Protocol scheme 'http' is not supported", it could indeed mean that my LWP library isn't properly installed and I need to reinstall it? If I do need to uninstall, is there a proper way to do it? Ofcourse, if that error means something else, I'd like to know what it could be.

        Thanks much.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027916]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2018-05-28 02:10 GMT
Find Nodes?
    Voting Booth?