Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What is the best way to install CPAN modules on Debian?

by ikegami (Patriarch)
on Mar 26, 2009 at 15:06 UTC ( [id://753430]=note: print w/replies, xml ) Need Help??


in reply to What is the best way to install CPAN modules on Debian?

I use Debian, and I use an option you didn't list.

I use the system Perl (threaded 5.8.8), and I install all my packages in a fresh directory using cpan (although using cpan is not required).

  • Set makepl_arg to PREFIX=~ LIB=~/lib/perl5 (Any version of MakeMaker)
  • Set makepl_arg to INSTALL_BASE=~ (Alternative for MakeMaker 6.31+)
  • Set mbuildpl_arg to --install_base /home/ikegami (Might accept ~)
  • Add export PERL5LIB=~/lib/perl5 to ~/.bash_profile
  • Run mkdir -p ~/.kde/env && ln -s ~/.bash_profile ~/.kde/env/profile.sh (For KDE console login)

(The following setup uses ~, but you can use any directory. I don't know the equivalent of the last for gnome.)

I haven't had any issues yet.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-06-24 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.