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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.