Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

CPAN - error with installation

by Jeri (Scribe)
on May 17, 2012 at 16:03 UTC ( #971099=perlquestion: print w/replies, xml ) Need Help??
Jeri has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm trying to set up cpan on Ubuntu 12.04 LTS. In the terminal I wrote

sudo perl -MCPAN -e shell
make install
install Bundle::CPAN

I've done an update and upgrade and have also installed perl. When I try to download XML::Parser in cpan it complains

make: *** [subdirs] Error 2 TODDR/XML-Parser-2.41.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: TODDR/XML-Parser-2.41.tar.gz : make NO

This happens with any module I try to download. I noticed it was discussed in this 2010 thread http://www.perlmonks.org/?node_id=866275 with no luck. Any help solving the cause of this error would be appreciated.

Thanks in advance!

Replies are listed 'Best First'.
Re: CPAN - error with installation
by marto (Archbishop) on May 17, 2012 at 17:01 UTC

    Are you installing this with the Perl that ships with Ubuntu? If so be warned that Ubuntu uses Perl to perform system tasks, this installation is best left to the operating system. I suggest installing a modern version of Perl to another location, this can be done quite easily from source (see the Installation section of the README) or via perlbrew.

    If you aren't using the system Perl could you please post more of the installation attempt, we only see the failure, if it's going to be a lot please use readmore tags (<readmore>lots of text</readmore>).

      I just re-installed Ubuntu again and did

      sudo perl -MCPAN -e shell
      install Bundle::CPAN

      and it worked! No errors.

      I'm not sure what was going on before, but I really didn't want to re-install Ubuntu. And to answer your question, I was just using the perl that was shipped with Ubuntu. Thanks for responding.

        Well, I'm glad it worked for whatever reason. I do discourage installing modules in the system perl, this could come back to bite you later on.

Re: CPAN - error with installation
by tweetiepooh (Hermit) on May 17, 2012 at 16:56 UTC
    Look at the error message, why is /usr/bin/make not OK? Does it work at the command line?
Re: CPAN - error with installation
by Jeri (Scribe) on May 17, 2012 at 16:28 UTC
    I'm not trying to post erroneous questions. I would just like to have cpan set up on my computer to download perl modules. Any help would be appreciated! Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://971099]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-08-19 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (186 votes). Check out past polls.

    Notices?