in reply to Re: cpan shell
in thread cpan shell

I have the CPAN shell. But it doesn't seem to work. For example:
[redd@redden redd]$ perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.61) ReadLine support enabled cpan> install Date::Manip CPAN: Storable loaded ok Going to read y/Metadata Database was generated on Wed, 15 Jan 2003 22:18:48 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://usit.shef.ac.uk/pub/packages/CPAN/authors/01mailrc.txt.gz Going to read y/sources/authors/01mailrc.txt.gz Fetching with LWP: ftp://usit.shef.ac.uk/pub/packages/CPAN/modules/02packages.details.t +xt.gz Going to read y/sources/modules/02packages.details.txt.gz Database was generated on Mon, 27 Jan 2003 01:19:05 GMT There's a new CPAN.pm version (v1.63) 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 upgrad +e while we are running... Fetching with LWP: ftp://usit.shef.ac.uk/pub/packages/CPAN/modules/03modlist.data.gz Going to read y/sources/modules/03modlist.data.gz Going to write y/Metadata Date::Manip is up to date. cpan> install Bundle::CPAN CPAN: Digest::MD5 loaded ok Checksum for y/sources/authors/id/A/AN/ANDK/CPAN-1.63.tar.gz ok Scanning cache y/build for sizes y/sources/authors/id/A/AN/ANDK/CPAN-1.63.tar.gz: No such file or direc +tory y/sources/authors/id/A/AN/ANDK/CPAN-1.63.tar.gz: No such file or direc +tory /bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.63.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.63.tar.gz +: /bin/tar: y/sources/authors/id/A/AN/ANDK/CPAN-1.63.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.63.tar.gz cpan> install Bundle::BioPerl Checksum for y/sources/authors/id/C/CR/CRAFFI/Bundle-BioPerl-2.04.tar. +gz ok y/sources/authors/id/C/CR/CRAFFI/Bundle-BioPerl-2.04.tar.gz: No such f +ile or directory y/sources/authors/id/C/CR/CRAFFI/Bundle-BioPerl-2.04.tar.gz: No such f +ile or directory /bin/tar: y/sources/authors/id/C/CR/CRAFFI/Bundle-BioPerl-2.04.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/C/CR/CRAFFI/Bundle-BioPerl +-2.04.tar.gz: /bin/tar: y/sources/authors/id/C/CR/CRAFFI/Bundle-BioPerl-2.04.tar.gz: + Cannot open: No such file or directory /bin/tar: Error is not recoverable: exiting now Couldn't untar y/sources/authors/id/C/CR/CRAFFI/Bundle-BioPerl-2.04.ta +r.gz cpan> o conf CPAN::Config options and /home/redd/.cpan/CPAN/MyConfig.pm: commit Commit changes to disk defaults Reload defaults from disk init Interactive setting of all options build_cache 10 build_dir y/build cache_metadata 1 cpan_home y dontload_hash ftp /usr/bin/ftp ftp_proxy getcwd cwd gzip /bin/gzip http_proxy inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where y/sources lynx /usr/bin/lynx make /usr/bin/make make_arg make_install_arg makepl_arg ncftp ncftpget no_proxy pager /usr/bin/less prerequisites_policy ask scan_cache atstart shell /bin/bash tar /bin/tar term_is_latin 1 unzip /usr/bin/unzip urllist ftp://usit.shef.ac.uk/pub/packages/CPAN/ wait_list wait://ls6-www.informatik.uni-dortmund.de:1404 wget /usr/bin/wget cpan>

Replies are listed 'Best First'.
Re: Re: Re: cpan shell
by bronto (Priest) on Jan 27, 2003 at 12:55 UTC

    Ah!

    I think you need to reconfigure your CPAN module: look at this:

    cpan_home y

    It seems that you answered "y" to the question that asked where to put the cpan cache; being "y" a relative path, it will mess things up if the module does chdir somewhere. Just reconfigure and put something a reasonable path in, e.g. /var/cache/cpan. It should work.

    Ciao!
    --bronto

    # Another Perl edition of a song:
    # The End, by The Beatles
    END {
      $you->take($love) eq $you->make($love) ;
    }