Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cpan wont update my mods

Status
Not open for further replies.

shak75

Technical User
Joined
May 14, 2003
Messages
2
Location
CA
I am using cpan for the first time.
I wanted to update cpan but somehow I am coming up with these error messages.

cpan> install Bundle::CPAN

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: No such file or directory
gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: No such file or directory
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now

thanx,
shak.
 
It looks like you have a local directory lookup for new modules, when you actually want to lookup on the net.

Have a look in your $PerlInstall/lib/CPAN.Config.pm file and look at urllist. Mine is currently set to:

'urllist' => [q[ftp://ftp.funet.fi/pub/languages/perl/CPAN/]],


which looks up the master CPAN FTP server. $PerlInstall should be replaced with whatever your standard perl directory is.

Barbie
Leader of Birmingham Perl Mongers
 
No, I dont believe that is the problem.
I checked the url. Its perfectly valid, the site is up and i was able to manually dl the file.
ftp://cpan.chebucto.ns.ca/pub/CPAN/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz

I still dont understand these errors:
Fetching with LWP:
ftp://cpan.chebucto.ns.ca/pub/CPAN/modules/03modlist.data.gz
Going to read y/sources/modules/03modlist.data.gz
Going to write y/Metadata
Fetching with LWP:
ftp://cpan.chebucto.ns.ca/pub/CPAN/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: No such file or directory
gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: No such file or directory
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Using Tar:/bin/tar xvf y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz:
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Couldn't untar y/sources/authors/id/A/AN/ANDK/CPAN-1.70.tar.gz
 
On further investigation, it looks like the settings in Config.pm might be referencing a bad directory.

your errors above reference 'y/' which would be from the current directory. This directory is the base install directory. Most people leave this as /.cpan/ which by the looks of it has somehow got corrupted. If /y/ is the directory you meant to use, you'll have to update the relavent entries in Config.pm. The ones to look at are:

'build_dir' => q[\.cpan\build\.],
'cpan_home' => q[\.cpan\.],
'keep_source_where' => q[\.cpan\sources\.],

Note that this is my Windows version, so on a Linux box the slashes should be the other way around.

If you have a /.cpan directory then it should be just a matter of fixing the paths above, otherwise you may have to try and reinstall CPAN by hand.

Barbie
Leader of Birmingham Perl Mongers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top