I just started trying to use CPAN.
So far, nothing works.
I'm using cygwin under Windows XP.
What typically happens is, I try to use CPAN to install something.
CPAN retrieves files for it, then says that there is no Makefile.PL in the package and that it will try to make its own. Then it says that it has installed the package, but when I go and look under /usr/lib/perl5/site_perl/5.8/cygwin/auto, I find it's created a directory for the package, which contains nothing but a ".packlist" file of 0 bytes. The package hasn't been installed. Here's an example:
$ cpan
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled
cpan> install SOAP::Lite
CPAN: Storable loaded ok
Going to read /cygdrive/c/Documents and Settings/goetzp/.cpan/Metadata
Database was generated on Fri, 22 Sep 2006 16:40:17 GMT
Running install for module SOAP::Lite
Running make for B/BY/BYRNE/SOAP-Lite-0.69.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /cygdrive/c/Documents and Settings/goetzp/.cpan/sources/authors/id/
B/BY/BYRNE/SOAP-Lite-0.69.tar.gz ok
Scanning cache /cygdrive/c/Documents and Settings/goetzp/.cpan/build for sizes
gzip: and.gz: No such file or directory
gzip: Settings/goetzp/.cpan/sources/authors/id/B/BY/BYRNE/SOAP-Lite-0.69.tar.gz:
No such file or directory
Package seems to come without Makefile.PL.
(The test -f "/cygdrive/c/Documents and Settings/goetzp/.cpan/build/BYRNE002/M
akefile.PL" returned false.)
Writing one on our own (setting NAME to SOAPLite)
CPAN.pm: Going to build B/BY/BYRNE/SOAP-Lite-0.69.tar.gz
Writing Makefile for SOAPLite
/usr/bin/make -- OK
Running make test
No tests defined for SOAPLite extension.
/usr/bin/make test -- OK
Running make install
Writing /usr/lib/perl5/site_perl/5.8/cygwin/auto/SOAPLite/.packlist
Appending installation info to /usr/lib/perl5/5.8/cygwin/perllocal.pod
/usr/bin/make install -- OK
cpan> quit
Lockfile removed.
goetzp@goetz-pc /d/data/code/sci/bio/binf/web/SOAP/WSFasta
$ perl WSFastaClient.pl
Can't locate SOAP/Lite.pm in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin /usr
/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8
/usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/
vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl
/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 .) at WSFastaClient.pl line 3.
BEGIN failed--compilation aborted at WSFastaClient.pl line 3.
(4)
]
