in reply to Re: CPAN ask me install a package repeatly
in thread CPAN ask me install a package repeatly

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
  • Comment on Re^2: CPAN ask me install a package repeatly

Replies are listed 'Best First'.
Re^3: CPAN ask me install a package repeatly
by ww (Archbishop) on Feb 22, 2012 at 20:20 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. "

    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.

        Is there some part of "The problem is your Perl install, itself" that's hard to understand?

Re^3: CPAN ask me install a package repeatly
by Riales (Hermit) on Feb 22, 2012 at 19:44 UTC
    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.

        I'm fairly ignorant as to what's really happening when I install a module via MCPAN, but in my experience it seems that some modules require root to install properly...but let me know if this is a misconception on my part!