develooper Front page | perl.perl5.porters | Postings from October 2003

CPAN bootstrap trouble

Thread Next
Ilya Zakharevich
October 22, 2003 00:39
CPAN bootstrap trouble
Message ID:
For long a time I was wondering how some people could get stuck with
CPAN.  However, today on one of the systems I got into a situation
which forces *me* to scratch my head.


powdermilk:/tmp/iz/foo->perl -MCPAN -we shell

Your configuration suggests that should use a working
directory of
Unfortunately we could not create the lock file
due to permission problems.

Please make sure that the configuration variable
points to a directory where you can write a .lock file. You can set
this variable in either

Could not open >/home/src/.cpan/.lock: Permission denied


As you see, due to some problems (well, actually I expect that they
are problems in, CPAN (essentially) reads config of the root
user.  Now how could I fix it (if I did not know backdoors ;-)?

[Of course, the MyConfig file mentioned above is not present.]

I cannot start an interactive session (as you can see it above).  I
can't correct this by making /home/u1/vis/ilya/.cpan/CPAN/
- its format is not documented (even if I know what the message above
is talking about).  I cannot even ask CPAN to start without a lock (at
least via reading the docs).

here are the problems of this illustrates:

 a) if root uses it early enough, the configuration is contaminated;

 b) if lock can't be acquired, the user should be given a choice
    (e.g., start with a fresh configuration for a different directory?).

 c) If is not found, the message better explain how to get it
    (e.g., copy the systemwise one?).


P.S.  This is CPAN v1.76.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About