Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

CPAN ask me install a package repeatly

by plantae (Initiate)
on Feb 22, 2012 at 16:57 UTC ( [id://955577]=perlquestion: print w/replies, xml ) Need Help??

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

I install perl-5.15.4 from CPAN shell, and failed. when I try to install other modules, cpan always ask me to install perl-5.15.4,I delete all files in build,source dir,and delete the file "metadata", then start new sessions, when i want to install some module, CPAN automatically asked me to download perl-5.15.4.

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

      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>.

        Have you tried running the command w/ sudo?
        sudo perl -MCPAN -e 'install File::Basename'
Re: CPAN ask me install a package repeatly
by tangent (Parson) on Feb 22, 2012 at 21:58 UTC
    I think your problem may be in your shell config. If you look below you will see how I get two different versions of CPAN.

    For my Perl 5.14
    $ sudo perl -MCPAN -e shell Password: cpan shell -- CPAN exploration and modules installation (v1.9600) cpan>
    However, if I invoke Perl with /usr/bin/perl
    $ sudo /usr/bin/perl -MCPAN -e shell Password: cpan shell -- CPAN exploration and modules installation (v1.7602) cpan>
    I get the CPAN that comes with my system Perl - that's probably what you want so you need to restore your shell config so it uses your system Perl. You could try this (outside the CPAN shell)
    sudo /usr/bin/perl -MCPAN -e 'install File::Basename'
    BTW I would highly recommend perlbrew for installing non-system Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://955577]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found