Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

CPAN Lock File Issue

by doubleqq (Acolyte)
on Sep 12, 2014 at 23:04 UTC ( [id://1100450]=perlquestion: print w/replies, xml ) Need Help??

doubleqq has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I am trying to resolve an issue with CPAN. I have to do local installs since i do not have root acces on this particular machine. I used to be able to run CPAN without issue, however recently I encountered an issue when I try to run CPAN.
$ cpan CPAN.pm panic Found Invalid lockfile '~/.cpan/.lock" please remove. Ca +nnot proceed

removing the file I try cpan again

$cpan Terminal does not support AddHistory CPAN: Time::HiRes loaded ok (v1.9726) Could not lock lockfile with flock: No such file or directory; retryin +g

When I try to install a module from the command line I get

$ cpan -i Array::Utils ....some loading messages... Waiting for a read lock on '/~/.cpan/FTPstats.yml'

Any thoughts as to what my issue might be? I tried changing the permissions for both the .lock file and the YAML file, but no luck. If it helps I am on a Fedora Unix system. The admin unfortunately does not have any immediate ideas. But any tips on troubleshooting this issue would be greatly appreciated.

Thank you all for any insight

Replies are listed 'Best First'.
Re: CPAN Lock File Issue
by Anonymous Monk on Sep 13, 2014 at 07:19 UTC

    Its simple, this file does not exist  '/~/.cpan/FTPstats.yml'

    Why is your version of cpan configured to look for that file? Its a mystery ... usually its "~/.cpan" which expands to /usr/home/username/.cpan ... try configuring/specifying an absolute path

    Go fish :)

      Thank you for weighing in, though it is odd. It creates an empty file for FTPstats.yml. I can delete the file and it will create it again. Not sure what should be contained in that file, but it's there under ~/.cpan/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found