in reply to CPAN ask me install a package repeatly

So do what the CPAN shell says.

Your description strongly suggests that your install of Perl is broken.

Did you see any errors or warnings as you initially installed Perl?

  • Comment on Re: CPAN ask me install a package repeatly

Replies are listed 'Best First'.
Re^2: CPAN ask me install a package repeatly
by plantae (Initiate) on Feb 22, 2012 at 18:51 UTC
    lots of errors while installing perl, I don't want to install it now, but the problem is that i can't install any modules now.
    How can I skipped the automatically prompt message like:
    cpan> install File::Basename
    Running install for module File::Basename
    Running make for F/FL/FLORA/perl-5.15.4.tar.gz
    Is already unwrapped into directory /home/SCE/kanghaiqi/.cpan/build/perl-5.15.4
    Makefile.PL returned status 256
    Running make test
    Make had some problems, maybe interrupted? Won't test
    Running make install
    Make had some problems, maybe interrupted? Won't install
      "lots of errors while installing perl, I don't want to install it now, but the problem is that i can't install any modules now. "

      Well, it seems to me that the problem is your failure to get Perl installed. Do you have some reason to want to install modules without an executable Perl?

      And BTW, it's easier to follow your illustrations -- data and code -- if you follow the directions for posting... e.g., use <p> paragraph tags around narrative text </p> and code tags, <c> around code and data </c>.

        The system has perl installed at /usr/bin
        It seems likely that CPAN will store some config or cache information in memory
        I delete the whole .cpan directory in my /home dir, and re-create this dir, copy Myconfig.pm back to .cpan/CPAN
        The problem still exists.
      Have you tried running the command w/ sudo?
      sudo perl -MCPAN -e 'install File::Basename'
        I install modules in my local directory, without any problem .
        This problem only occurs after I try to install perl-5.15.4.
        sudo only applies if I have root access.