CPAN Question
|
|
Thread rating:  |
Timothy Bailey - 28 May 2004 02:55 GMT I've been playing around with CPAN, to get some modules installed. Unfortunately, something seems to be not working. Perhaps it was because I tried to install LWP before its dependencies. Or it could be that the CPAN update failed. But anyway, the "make" section is failing. Any ideas how I can fix it?
Here is an excerpt:
>Error: Unable to locate installed Perl libraries or Perl source code. > >It is recommended that you install perl in a standard location before >building extensions. Some precompiled versions of perl do not contain >these header files, so you cannot build extensions. In such a case, >please build and install your perl from a fresh perl distribution. It >usually solves this kind of problem. > >(You get this message, because MakeMaker could not find >"/System/Library/Perl/darwin/CORE/perl.h") That particular file does not seem to exist. So maybe there's some setting I need to change.
And make returns status 512 often. Whatever that means. ;)
 Signature Tim Bailey |\/ "Of all tyrannies, a tyranny exercised for the tim@moonrise.org |\/ good of its victims may be the most oppressive. telestro@wi.rr.com | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--<@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience." -- C.S. Lewis
Rick Measham - 28 May 2004 03:12 GMT G'day Timothy,
You're missing the perl headers. These are installed when you install the developers tools (which came with your OS or are available freely from Apple's website)
I can't remember which package in particular you need, if you can't work it out and don't want to just install everything off the disk, I'm sure someone else will chip in shortly with exactly which package it is.
Cheers! Rick Measham
> I've been playing around with CPAN, to get some modules installed. > Unfortunately, something seems to be not working. Perhaps it was [quoted text clipped - 19 lines] > > And make returns status 512 often. Whatever that means. ;) Senior Developer PrintSupply - Print Procurement & Supply Management 18 Greenaway Street VIC 3105 Tel: (03) 9850 3255 Fx: (03) 9850 3277 http://www.printsupply.com.au/
Timothy Bailey - 28 May 2004 04:05 GMT >You're missing the perl headers. These are installed when you >install the developers tools (which came with your OS or are [quoted text clipped - 4 lines] >I'm sure someone else will chip in shortly with exactly which >package it is. Hmm, I did buy the computer used, and reinstalled the OS that came with it (10.2, two CDs), and I thought I had installed everything off of them. (Of course, this =is= my first experience with OSX.) Is there a third CD I should have gotten with Jaguar?
 Signature Tim Bailey |\/ "Of all tyrannies, a tyranny exercised for the tim@moonrise.org |\/ good of its victims may be the most oppressive. telestro@wi.rr.com | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--<@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience." -- C.S. Lewis
Bruce Van Allen - 28 May 2004 04:24 GMT >Hmm, I did buy the computer used, and reinstalled the OS that came >with it (10.2, two CDs), and I thought I had installed everything off >of them. (Of course, this =is= my first experience with OSX.) Is >there a third CD I should have gotten with Jaguar? Yes. With Jaguar it's called the Developer Tools Disk. It has its own installer, so you would have noticed.
You can also download it from Apple. You have to join as a developer, but that's no big deal. Then just make sure you get the Developer Tools appropriate for your version of OS X.
(With Panther, the Developer Tools became XTools.)
Just install the whole thing.
Then you'll be able to do the fun things discussed on this list.
- Bruce
__bruce__van_allen__santa_cruz__ca__
Timothy Bailey - 29 May 2004 19:25 GMT >You can also download it from Apple. You have to join as a developer, >but that's no big deal. Then just make sure you get the Developer Tools >appropriate for your version of OS X. I downloaded the December 2002 version, and installed it. I am still getting make errors - it's returning a bad status, despite reboots and a second install attempt of the tools.
(Trying "install Bundle::libnet", among other things, attempted an install of Perl 5.8.4 - I'm not certain if it was successful, but I have tried it several times, primarily using the defaults.)
Any other ideas? Do I blank out the ~/.cpan directory? How do I determine that the Developer Tools took? The errors seem to be slightly different now, but I'm not certain of the specifics.
 Signature Tim Bailey |\/ "Of all tyrannies, a tyranny exercised for the tim@moonrise.org |\/ good of its victims may be the most oppressive. telestro@wi.rr.com | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--<@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience." -- C.S. Lewis
Bruce Van Allen - 29 May 2004 20:34 GMT >>You can also download it from Apple. You have to join as a developer, >>but that's no big deal. Then just make sure you get the Developer Tools >>appropriate for your version of OS X. > >I downloaded the December 2002 version, and installed it. I am still That's old. Did you say you have OS X 10.2?
>(Trying "install Bundle::libnet", among other things, attempted an >install of Perl 5.8.4 - I'm not certain if it was successful, but I Oh, there's a hint. There was a version of CPAN.pm in early Jaguar that would force an install of the latest Perl. Not what you want. I think the immediate solution was to install a newer CPAN (but not Bundle::CPAN). Search this list -- lots of talk over a year ago...
>Any other ideas? Do I blank out the ~/.cpan directory? How do I >determine that the Developer Tools took? The errors seem to be >slightly different now, but I'm not certain of the specifics. I've installed Dev Tools routinely since the Public Beta, so I don't know what it's like without them, but it seems like I first tested them using Terminal, running tools and Perl code from the command line...
Could you reinstall your system, maybe upgraded to later Jaguar, and get a later version of the Developer Tools? And if you want a later version of Perl, DO NOT replace the system's Perl -- again, search this list for discussion. (I'm assuming you have a reason not to buy Panther, w/ Perl 5.8.1.)
Then start fresh with cpan, beginning with its own config.
HTH
1;
- Bruce
__bruce__van_allen__santa_cruz__ca__
Sherm Pendley - 30 May 2004 15:05 GMT >> (Trying "install Bundle::libnet", among other things, attempted an >> install of Perl 5.8.4 - I'm not certain if it was successful, but I > > Oh, there's a hint. There was a version of CPAN.pm in early Jaguar that > would force an install of the latest Perl. Every Jaguar, not just early ones, shipped with Perl 5.6.0 and its broken CPAN.pm.
> the immediate solution was to install a newer CPAN (but not > Bundle::CPAN). Search this list -- lots of talk over a year ago... That was, is, and will continue to be the correct solution unless Apple decides to update some future version of Jaguar to a newer Perl - which isn't going to happen.
Download the current CPAN.pm from <http://cpan.org/modules/by-module/CPAN/CPAN-1.76.tar.gz>, and unpack and install it manually.
> Could you reinstall your system, maybe upgraded to later Jaguar, and > get > a later version of the Developer Tools? Pointless. Any Jaguar will automagically update itself to the latest 10.2.x revision through Software Update, and the Dec. '02 dev tools are the latest for Jaguar.
> And if you want a later version > of Perl, DO NOT replace the system's Perl -- again, search this list > for > discussion. Better still, read the instructions that come with Perl, especially the readme.macosx, which is primarily a summary of those past discussions.
sherm--
Timothy Bailey - 30 May 2004 04:59 GMT On Sat, 29 May 2004 12:34:39 -0700, someone going by the name of Bruce Van Allen <bva@cruzio.com> typed:
>On 5/29/04 Timothy Bailey wrote: [...]
> >I downloaded the December 2002 version, and installed it. I am still > >That's old. Did you say you have OS X 10.2? 10.2.8. That Developer Tools seems to be the newest one for 10.2 on the Developer Tools page; the rest are XCode, and require 10.3.
> >(Trying "install Bundle::libnet", among other things, attempted an >>install of Perl 5.8.4 - I'm not certain if it was successful, but I [quoted text clipped - 3 lines] >the immediate solution was to install a newer CPAN (but not >Bundle::CPAN). Search this list -- lots of talk over a year ago... I haven't found it yet, but I'll keep looking.
> >Any other ideas? Do I blank out the ~/.cpan directory? How do I >>determine that the Developer Tools took? The errors seem to be [quoted text clipped - 9 lines] >discussion. (I'm assuming you have a reason not to buy Panther, w/ Perl >5.8.1.) This is my hobby machine to play with OSX - I don't want to spend the $100+ for Panther. ;)
 Signature Tim Bailey |\/ "Of all tyrannies, a tyranny exercised for the tim@moonrise.org |\/ good of its victims may be the most oppressive. telestro@wi.rr.com | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--<@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience." -- C.S. Lewis
|
|
|