irvken has asked for the wisdom of the Perl Monks concerning the following question:

every time I run

install Bundle::CPAN it crashes out at the end
Checking if your kit is complete... Looks good Writing Makefile for CPAN -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Bundle summary: The following items in bundle Bundle::CPAN had install +ation problems: Digest::MD5 Compress::Zlib Archive::Tar Bundle::libnet Term::ReadKey Term::ReadLine::Perl CPAN::WAIT CPAN and the following items had pro +blems during recursive bundle calls: Net::Cmd Net::Telnet
I've made afew changes to my Config.pm which helped the script run a bit further but I think there must still be problems, for instance should there be a path in for make
commit Commit changes to disk defaults Reload defaults from disk init Interactive setting of all options build_cache 10 build_dir /home/sean/downloads/scoop/scoop-0.9/scripts/y/ +build cache_metadata 1 cpan_home /home/sean/.cpan dontload_hash ftp ftp_proxy getcwd cwd gzip /bin/gzip http_proxy inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where /home/sean/downloads/scoop/scoop-0.9/scripts/y/ +sources links make make_arg make_install_arg makepl_arg ncftp ncftpget no_proxy pager prerequisites_policy ask scan_cache atstart shell tar /bin/tar term_is_latin 1 unzip urllist http://cpan.hambule.co.uk/ wait_list wait://ls6-www.informatik.uni-dortmund.de:1404 wget

Replies are listed 'Best First'.
Re: CPAN crashes out
by bart (Canon) on May 01, 2003 at 11:06 UTC
    You don't mention what platform you have... but judging from your paths, it must be a derivative of Unix.

    Anyway, the problem appears to be in creating the makefile for CPAN.pm. Try doing the manual installation, when you get the necessary archives. You know: expand the archive, chdir to the main directory, type perl Makefile.PL, next make, make test, make install — only continuing on the next step if the previous step didn't barf. You can read the whole official checklist in perlfaq8, and likely in the README file of any module you may try to install.

    I expect it to bust on perl Makefile.PL. Perhaps it may give you more detailed info on what is wrong.

    If you get it to install, and the new CPAN still doesn't work right, feel free to come back.

    p.s. Are you sure you have the required permission to install modules? It looks like you run CPAN as yourself, not as root, by the look of CPAN's home directory.

      heh, I'm running Red hat 8.0 Linux and all I wanted to do was install a Content management system (scoop) to create a website/log. I've been at it 3 days now :( , and appear to have made a right pigs ear of it (I fear I may have to trash my hard drive and start all over again pretty soon, I've got weird files/paths/permmisions all over the place). I was not intending to end up in the corridors of this Monastery at all.

      OK then, a couple of questions concerning your advice

      1. When you say "Try doing the manual installation, when you get the necessary archives." do you mean Perl or CPAN?

      2. What is the proper place to unpack the archive when I've got it?
      I think a lot of my previous problems are down to not unarchiving in the right place.

      Thanks for your help
        Answers:
        1. CPAN — I think it's there that it fails
        2. doesn't matter where, as long as you have the right to create files there
        What could matter, is having write access in the final stage, make install, but we'll get to that if you get that far. Er, when. :]