1arryb has asked for the wisdom of the Perl Monks concerning the following question:
I have been using this script to install system perl modules and, up until trying it on an FC14 installation, it's worked great. On the new machine, however, it installs modules under /root, which isn't supposed to be the --sudo cpanm behavior. According to the App::cpanminus perldoc:
cpanminus at a boot time checks whether you have configured local::lib, or have the permission to install modules to the site_perl directory. If neither, it automatically sets up local::lib compatible installation path in a "perl5" directory under your home directory. To avoid this, run the script as the root user, with "--sudo" option or with "--local-lib" option.
I have tried it as root with and without --sudo, and cpanm will not install into /usr on this mahcine.
What am I missing?
Thanks, Larry
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cpanm --sudo installs to /root/perl5 instead of /usr
by syphilis (Archbishop) on Jun 26, 2012 at 00:21 UTC | |
|
Re: cpanm --sudo installs to /root/perl5 instead of /usr
by Anonymous Monk on Jun 26, 2012 at 04:33 UTC |