This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CPAN module in Cygwin


Elvin Peterson schrieb:
Hello,
   The CPAN command:

perl -MCPAN -e shell

fails with:
Cannot open >/usr/lib/perl5/5.8.5/CPAN/Config.pm at
/usr/lib/perl5/5.8.5/CPAN.pm line 1219

It looks like it is trying to write to a file owned by
Administrator.  Is there a workaround to install
modules as a user?

root ownersip is okay. but it must be readable. user-specific CPAN configs are stored in ~/.cpan/CPAN/MyConfig.pm

chmod +r /usr/lib/perl5/5.8.5/CPAN/Config.pm
chmod -R +rw /usr/lib/perl5/site_perl/5.8.5
chmod -R +rw ~/.cpan

--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]