Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

installing perl module

by arthurs (Novice)
on Apr 09, 2013 at 19:48 UTC ( #1027826=perlquestion: print w/ replies, xml ) Need Help??
arthurs has asked for the wisdom of the Perl Monks concerning the following question:

I would like to reinstall LWP perl module. To install perl modules I need to have ExtUtils-MakeMaker module, so I downloaded one from CPAN, untar it, ran 'perl Makefile.PL' successfully.

Now, from what I read I need to run 'make' command. However, I don't see 'make' in my dir or anywhere else. Did I do anything wrong?

From what I understand, after running 'perl Makefile.PL', I need to run 'make' to compile the code, then run 'make test' to test if all is OK, and then 'make install' to install the module. But I don't see 'make' anywhere. Please help. thanks.

Comment on installing perl module
Re: installing perl module
by choroba (Abbot) on Apr 09, 2013 at 19:52 UTC
    make is usually /usr/bin/make on Linux (you might need to install it on MSWin and MacOSX). Makefile.PL just creates Makefile that is processed by make.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: installing perl module
by CountZero (Bishop) on Apr 09, 2013 at 20:01 UTC
    What OS and what Perl are you running?

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re: installing perl module
by syphilis (Canon) on Apr 09, 2013 at 23:40 UTC
    From what I understand, after running 'perl Makefile.PL', I need to run 'make' to compile the code

    No ... after 'perl Makefile.PL' you need to run whatever perl -V:make reports.

    For me:
    C:\>perl -V:make make='dmake'; C:\>
    So, for me, it's dmake that needs to be run.

    Cheers,
    Rob
Re: installing perl module
by Anonymous Monk on Apr 10, 2013 at 07:49 UTC

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

    Maybe you even already have LWP :)

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1027826]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-10-01 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (391 votes), past polls