Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: cpan suddenly fails

by ig (Vicar)
on Oct 13, 2013 at 05:01 UTC ( #1058037=note: print w/replies, xml ) Need Help??

in reply to cpan suddenly fails

From @INC, it looks like you are dealing with the system installation of perl, which was probably installed as a package as part of your system. With some parts installed from packages and others installed from CPAN, it is possible to make your installation dysfunctional.

You could try re-installing system packages to bring things back to a consistent state, after which you might abstain from installing to the system perl from cpan until you have learned enough to deal with the problems that sometimes occur. If you can, install everything you need from your system's distribution packages.

If you need modules from CPAN that are not available from your system distribution, you might do best to put a separate installation of perl on your server, to avoid conflicts with the system installation. You could install a more current version of perl, which would also help you avoid problems with new CPAN releases that don't work well on such an old version of perl.

Installing perl from source is not very difficult, but can be overwhelming if your system does not yet have prerequisites (compiler, make, libraries, etc.), particularly if this is unfamiliar to you. If you are interested in such things, it might be a good learning experience for you. Otherwise, you might be able to get someone familiar with installing perl to help you.

If this is a production server ("on-line" suggests it is), you would do well to practice installing on a less critical system, until you are confident you know how to do it successfully.

Replies are listed 'Best First'.
Re^2: cpan suddenly fails
by CountZero (Bishop) on Oct 13, 2013 at 07:05 UTC
    Upgrading to a newer version of Perl, but leaving your system Perl alone, is easy with Perlbrew. It even allows you to compile a version of Perl yourself without much trouble.


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1058037]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2023-06-06 09:56 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.