Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Help on installing a CPAN module

by perleager (Pilgrim)
on Jul 28, 2001 at 07:51 UTC ( [id://100516]=perlquestion: print w/replies, xml ) Need Help??

perleager has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I've read several posts and referrences on how to intall a CPAN module.

When I log-in as username "bink" and upload the module to a temp. folder, then try typing the command "perl Makefile.PL" and then make, make test, and the the last step, make install would give me a error because i dont have permission. So I log-in as the su, run the same commands, but only this time after I typed the command perl Makefile.PL it gives me the same message as before, but when I go on to the 2nd step "make", it says file make not found.

Any idea why?

Replies are listed 'Best First'.
Re: Help on installing a CPAN module
by Zaxo (Archbishop) on Jul 28, 2001 at 08:26 UTC

    In the first case, as normal user, you don't have write permission for the system perl lib directories. In the second, it sounds like root doesn't find make in $ENV{PATH}. That is common for gnu make's default installation in /usr/local/bin.

    The usual solution is to do everything but 'make install' as normal user, then su and '/usr/local/bin/make install' 1. This is all very dependent on local installation and environment.

    These considerations apply to any software build, not just CPAN modules

    After Compline,
    Zaxo

    1 or whatever your make path is.

    Update: perleager has indicated that gcc is not found either, also being in /usr/local/bin . The remedy is to say on the command line, before building:

    PATH=/usr/local/bin:$PATH

Re: Help on installing a CPAN module
by Cirollo (Friar) on Jul 28, 2001 at 09:34 UTC
    Try issuing the command perl -MCPAN -e shell as root. You'll get an interactive installer shell where you can type things like 'install module_name'. See also perlman:lib:CPAN.
Re: Help on installing a CPAN module (manually upgrade CPAN.pm first)
by ybiC (Prior) on Jul 28, 2001 at 19:36 UTC
    A couple threads suggest that it may be prudent to manually upgrade CPAN.pm itself before using it to install other modules.   That is, if your existing Perl installation is not the very latest, I think.
    Zaxo's sage advice should help with the manual upgrade, after which Cirollo's good counsel should help with using the CPAN shell (without having to worry about a bug in older versions of CPAN.pm).
        hope this helps,
        Don
        striving toward Perl Adept
        (it's pronounced "why-bick")
Re: Help on installing a CPAN module
by bikeNomad (Priest) on Jul 28, 2001 at 20:50 UTC
    file make not found

    Sounds like your root account doesn't have make in its path. Try typing the full path to make instead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found