Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Funny Little Permissions Issue on Ubuntu

by przemo (Scribe)
on Apr 22, 2009 at 10:58 UTC ( #759241=note: print w/replies, xml ) Need Help??

in reply to SOLVED: Funny Little Permissions Issue on Ubuntu

You didn't mention clearly, why do you install modules as a root. Is it a multi-user environment, or you are the only citizen in the system?

If you want installed modules to be seen by other users, the best place for them is /usr/local. And this should be the default setting on fresh run of CPAN -- unless in my case (Ubuntu 9.04). Either run 'o conf init' from inside CPAN shell, or remove ~/.cpan dir to start from the beginning.

If you want to install modules for yourself only, I'd recommend using local user's folder -- this is the way I work and had no problems with it yet. To do so:

  1. Create folder ~/perl
  2. set PERL5LIB=~/perl/lib/perl5 somewhere in startup script (e.g. ~/.bash_profile)
  3. set following options in the CPAN
    o conf makepl_arg INSTALL_BASE=~/perl o conf mbuildpl_arg "--install_base ~/perl"

(in above code ~ is your homedir, please expand it)

After that, the CPAN installation should place all files in ~/perl.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-02-25 21:08 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (113 votes). Check out past polls.