Hi all,
I'm trying to use CPAN to install PERL modules for the first time and, not surprisingly, can't make it work.
The first time I tried to load the module, CPAN (I assume) asked me a bunch of configuration questions and, as you might see below, CPAN is now looking in a directory called "y" for build files. "y" sounds more like I answered "y" to the wrong question during the setup phase and though the install messages (below) SEEM to indicate that it's found "y" and is doing things with it, when it tries to unzip/untar downloaded files it fails.
The directory "y" on my system is actually at /etc/webmin/y, seems kind of an unlikely place but what the heck do I know?
I realize it's going to be a pain for anyone to wade through this crud and tell me where I went wrong/how to fix it, but I sure would appreciate some help. Below the cpan console session below is my CPAN Config.pm file.
I'd appreciate any direction I could get on this,
Thanks,
Chuck
CPAN session
cpan> install Bundle::CPAN
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/01mailrc.txt.gz
Going to read y/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://archive.progeny.com/CPAN/modules/02packages.details.txt.gz
Going to read y/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 23 Apr 2004 09:52:26 GMT
There's a new CPAN.pm version (v1.76) available!
[Current version is v1.61]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...
Fetching with LWP:
ftp://archive.progeny.com/CPAN/modules/03modlist.data.gz
Going to read y/sources/modules/03modlist.data.gz
Going to write y/Metadata
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/id/A/AN/ANDK/CHECKSUMS
Checksum for y/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz ok
Scanning cache y/build for sizes
Argument "y" isn't numeric in numeric gt (>) at /usr/lib/perl5/5.8.0/CPAN.pm line 833.
gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz: No such file or directory
gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz: No such file or directory
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.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.76.tar.gz:
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.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.76.tar.gz
CPAN Config file
[root@www CPAN]# pwd
/usr/lib/perl5/5.8.0/CPAN
[root@www CPAN]# cat Config.pm
# 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[y],
'build_dir' => q[y/build],
'cache_metadata' => q[1],
'cpan_home' => q[y],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gzip' => q[/bin/gzip],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[y/sources],
'links' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'prerequisites_policy' => q[ask],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'tar' => q[/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[ftp://archive.progeny.com/CPAN/], q[ftp://carroll.cac.psu.edu/pub/CPAN/], q[ftp://cpan-du.viaverio.com/pub/CPAN/], q[ftp://cpan-sj.viaverio.com/pub/CPAN/], q[ftp://cpan.calvin.edu/pub/CPAN], q[ftp://cpan.cse.msu.edu/], q[ftp://cpan.digisle.net/pub/CPAN], q[ftp://cpan.erlbaum.net/], q[ftp://cpan.llarian.net/pub/CPAN/], q[ftp://cpan.mirror.redwire.net/pub/CPAN/], q[ftp://cpan.mirrors.tds.net/pub/CPAN], q[ftp://cpan.nas.nasa.gov/pub/perl/CPAN/], q[ftp://cpan.netnitco.net/pub/mirrors/CPAN/], q[ftp://cpan.pair.com/pub/CPAN/], q[ftp://cpan.teleglobe.net/pub/CPAN], q[ftp://cpan.thepirtgroup.com/]],
'wait_list' => [q[wait://ls6-www.informatik.uni-dortmund.de:1404]],
'wget' => q[/usr/bin/wget],
};
1;
__END__
I'm trying to use CPAN to install PERL modules for the first time and, not surprisingly, can't make it work.
The first time I tried to load the module, CPAN (I assume) asked me a bunch of configuration questions and, as you might see below, CPAN is now looking in a directory called "y" for build files. "y" sounds more like I answered "y" to the wrong question during the setup phase and though the install messages (below) SEEM to indicate that it's found "y" and is doing things with it, when it tries to unzip/untar downloaded files it fails.
The directory "y" on my system is actually at /etc/webmin/y, seems kind of an unlikely place but what the heck do I know?
I realize it's going to be a pain for anyone to wade through this crud and tell me where I went wrong/how to fix it, but I sure would appreciate some help. Below the cpan console session below is my CPAN Config.pm file.
I'd appreciate any direction I could get on this,
Thanks,
Chuck
CPAN session
cpan> install Bundle::CPAN
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/01mailrc.txt.gz
Going to read y/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://archive.progeny.com/CPAN/modules/02packages.details.txt.gz
Going to read y/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 23 Apr 2004 09:52:26 GMT
There's a new CPAN.pm version (v1.76) available!
[Current version is v1.61]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...
Fetching with LWP:
ftp://archive.progeny.com/CPAN/modules/03modlist.data.gz
Going to read y/sources/modules/03modlist.data.gz
Going to write y/Metadata
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/id/A/AN/ANDK/CHECKSUMS
Checksum for y/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz ok
Scanning cache y/build for sizes
Argument "y" isn't numeric in numeric gt (>) at /usr/lib/perl5/5.8.0/CPAN.pm line 833.
gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz: No such file or directory
gzip: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz: No such file or directory
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.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.76.tar.gz:
/bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.76.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.76.tar.gz
CPAN Config file
[root@www CPAN]# pwd
/usr/lib/perl5/5.8.0/CPAN
[root@www CPAN]# cat Config.pm
# 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[y],
'build_dir' => q[y/build],
'cache_metadata' => q[1],
'cpan_home' => q[y],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gzip' => q[/bin/gzip],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[y/sources],
'links' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'prerequisites_policy' => q[ask],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'tar' => q[/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[ftp://archive.progeny.com/CPAN/], q[ftp://carroll.cac.psu.edu/pub/CPAN/], q[ftp://cpan-du.viaverio.com/pub/CPAN/], q[ftp://cpan-sj.viaverio.com/pub/CPAN/], q[ftp://cpan.calvin.edu/pub/CPAN], q[ftp://cpan.cse.msu.edu/], q[ftp://cpan.digisle.net/pub/CPAN], q[ftp://cpan.erlbaum.net/], q[ftp://cpan.llarian.net/pub/CPAN/], q[ftp://cpan.mirror.redwire.net/pub/CPAN/], q[ftp://cpan.mirrors.tds.net/pub/CPAN], q[ftp://cpan.nas.nasa.gov/pub/perl/CPAN/], q[ftp://cpan.netnitco.net/pub/mirrors/CPAN/], q[ftp://cpan.pair.com/pub/CPAN/], q[ftp://cpan.teleglobe.net/pub/CPAN], q[ftp://cpan.thepirtgroup.com/]],
'wait_list' => [q[wait://ls6-www.informatik.uni-dortmund.de:1404]],
'wget' => q[/usr/bin/wget],
};
1;
__END__