This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Unable to use cpan
- From: Andrew DeFaria <Andrew at DeFaria dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 20 Aug 2009 00:16:36 -0700
- Subject: Unable to use cpan
More and more of my clients nowadays restrict where you can go to "get
things from the net". I have managed to convince management to allow
blanket permission to install CPAN modules for our code development. I
wish to install them en massà using a "bundle" with the cpan(1) script.
However it doesn't seem to work right. I'm not sure if this is a Cygwin
issue or a CPAN issue. If the later then pointers would be appreciated.
In it's simplest form I cannot install even a single CPAN module due to
this error. Note that cpan(1) tries various methods to retrieve the
external CPAN module, including LWP, Net::Ftp, etc. I have ncftp and
have managed to configure it to properly use the proxy in order to
obtain stuff from the net. For example, I can ncftp to my server at home
from my client's machines by utilizing the proxy settings.
While cpan(1) fails to get the material with LWP, Net::Ftp, etc. It does
seem to succeed when using ncftp but then fails with an odd error about
trying to rename the file it downloaded and failing to:
$ cpan Algorithm::Diff
CPAN: File::HomeDir loaded ok (v0.80)
CPAN: Storable loaded ok (v2.18)
...
Trying with "/bin/ncftpget" to get
ftp://mirrors1.kernel.org/pub/CPAN/modules/03modlist.data.gz
03modlist.data.gz: 161.78 kB 796.93
kB/s
Error while trying to rename
'/home/p6258c/.cpan/sources/modules/03modlist.data.gz.tmp3996' to
'/home/p6258c/.cpan/sources/modules/03modlist.data.gz': No such file or
directory
$
Yet I see:
$ ls /home/p6258c/.cpan/sources/modules/03modlist.data.tmp3996*
/home/p6258c/.cpan/sources/modules/03modlist.data.tmp3996
/home/p6258c/.cpan/sources/modules/03modlist.data.tmp3996.gz
IOW I see the "tmp3996" and then the ".gz" yet the cpan command tried to
rename a file with ".gz" and then ".tmp3996".
Help!?!
--
Andrew DeFaria <http://defaria.com>
The best argument against democracy is a five-minute conversation with
the average voter.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple