Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

CPAN installation

by Kateveronica (Initiate)
on Feb 19, 2007 at 11:12 UTC ( [id://600815]=perlquestion: print w/replies, xml ) Need Help??

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

I am need to use a package of CPAN on my mac OSX 10.4.8. After installation of CPAN I tested it by trying to install Bundle::CPAN as was recommended. I got a large output, the first part of which is listed below. "LWP not available" and ultimately it said installation seems impossible because it "cannot carry out testing without successful make". What seems to be the problem?
cpan> install Bundle::CPAN CPAN: Storable loaded ok Going to read /Users/katherinewendelsdorf/Desktop/Jrna_ver_0/yes/Metad +ata Database was generated on Mon, 12 Feb 2007 14:09:14 GMT LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/authors/id/A/AN/ANDK/ #A bunch of output in between /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 Running install for module ExtUtils::CBuilder Running make for K/KW/KWILLIAMS/ExtUtils-CBuilder-0.18.tar.gz LWP not available
Thank you , thank you, thank you for ANY advice

Replies are listed 'Best First'.
Re: CPAN installation
by romkey (Acolyte) on Feb 19, 2007 at 14:11 UTC
    You have to install Apple's XCode development environment first. It's available on the MacOS X 10.4 CDROM, or you can sign up for free at http://www.apple.com/developer and download the latest and greatest from there. It's possible it might work to get make using fink but you're best off just installing XCode.
Re: CPAN installation
by marto (Cardinal) on Feb 19, 2007 at 11:17 UTC
Re: CPAN installation
by rinceWind (Monsignor) on Feb 19, 2007 at 13:10 UTC

    We really need to see more of your errors to see what the problem is (you could use a <readmore> tag in your post). Or, you could paste the output into your scratchpad, or host it somewhere if it's very large.

    I suspect that the problem might be permissions, though I don't know how these work on a Mac.

    The make install step needs to be run as root, or a user that has write access to the perl lib paths. If the install step fails for a dependency module, CPAN.pm will still carry on and try (and fail) to install the dependent modules, which might fail to make and give the output you have shown.

    Another possibility is a problem with your C compiler. Several of the modules needed by Bundle::CPAN contain XS code, and you need to have a working C compiler to build it - the same C compiler as your perl was built with.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-19 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found