Hello Monks
I have installed App::perlbrew 0.70 because perlbrew > 0.70 does not compile on Perl 5.8.8 which my RHEL 5.11 box still uses. (Unfortunately, it's not an option to upgrade this server)
I have successfully installed App::perlbrew 0.70 and perl 5.18.4 and am attempting to use cpan to install modules as a user. When I install modules as root there are no issues. I created a local::lib with perlbrew for my user and receive the following error when trying to install:
three18ti@aserver:~$ perlbrew list perl-5.18.4 * perl-5.18.4@three18ti three18ti/@aserver:~$ which cpan /opt/perlbrew/perls/perl-5.18.4/bin/cpan three18ti@aserver:~$ cat /etc/*release* Red Hat Enterprise Linux Server release 5.11 (Tikanga) three18ti@aserver:~$ cpan Terminal does not support AddHistory. CPAN.pm panic: Found invalid lockfile '/home/three18ti/.cpan/.lock', p +lease remove. Cannot proceed. three18ti@aserver:~$ rm .cpan/.lock three18ti@aserver:~$ cpan Terminal does not support AddHistory. CPAN: Time::HiRes loaded ok (v1.9725) Could not lock lockfile with flock: No such file or directory; retryin +g Could not lock lockfile with flock: No locks available; retrying
unfortunately, cpanm is not an option because this server does not have internet access, we use an internal nfs mirror of CPAN. (so my cpan config is "mirror => 'file:///path/to/my/cpan'", the --mirror flag to cpanm does not work).
I suppose I could use cpanplus... have to figure out how to configure that to use a local mirror.
Thanks!
EDIT: After working with other modules, it doesn't look like fnctl flock works on nfs shares: http://stackoverflow.com/questions/3781613/can-i-get-fcntl-and-perl-alarms-to-cooperate
It didn't even occur to me that my home dir was on an nfs share and that might be causing the issues. So if you're trying to install perl modules locally to your nfs mounted home dir, you won't be able to.
In reply to Problem with perlbrew CPAN lockfile by three18ti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |