PDA

View Full Version : can't get CPAN to install modules


fab
04-03-2002, 02:25 PM
I'm trying to install a couple of Perl modules through the CPAN.pm module.

in interactive mode (perl -MCPAN -e shell)

the following error is reported (here I'm trying to install the latest CPAN.pm):

zsh: no such file or directory: y/sources/authors/id/A/AN/ANDK/CPAN-1.59.tar.gz
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
y/sources/authors/id/A/AN/ANDK/CPAN-1.59.tar.gz: No such file or directory
Couldn't uncompress y/sources/authors/id/A/AN/ANDK/CPAN-1.59.tar.gz

I can't see why it says 'no such file or directory'...the file IS right there in my HOME folder (CPAN.pm created/downloaded it there) but it still can't find it...

Install of modules like XML::Parser won't work either (plus, Expat.pm install is required, but manual install (Makefile.PL, make, make test) of this module fails too).

Plz help! thanx...

F.

Novajo
04-03-2002, 07:24 PM
I just tried it myself. It worked. Maybe your config file is incorrect ? here is mine:

# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/Volumes/Documents/Users/dccote/.cpan/build],
'cpan_home' => q[/Volumes/Documents/Users/dccote/.cpan],
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gzip' => q[/usr/bin/gzip],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/Volumes/Documents/Users/dccote/.cpan/sources],
'lynx' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[PREFIX=/usr/local INSTALLMAN1DIR=/usr/local/share/man/man1 INSTALLMAN3DIR=/usr/local/share$
'ncftp' => q[/usr/bin/ncftp],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[/bin/tcsh],
'tar' => q[/usr/bin/tar],
'unzip' => q[/usr/bin/unzip],
'urllist' => [ q[ftp://cpan.mirror.smartworker.org/pub/CPAN] ],
'wait_list' => [q[wait://ls6.informatik.uni-dortmund.de:1404]],
};
1;
__END__


Also make sure you are root and that your firewall is deactivated.

DavidBaker
04-04-2002, 03:49 PM
Have you tried sudo perl -MCPAN -e shell?

David

fab
04-04-2002, 11:47 PM
Everything is working OK now, I edited my Config.pm file, and after that CPAN.pm asked to answer all the questions again. THIS time I got all the answers right ;-)

using CPAN as root solved some permission problems too...

Thanks for the tips!