At 10:03 -0500 5/28/02, Patrick Burke wrote: >Hi, > >Thanks for the reply. > >I've been looking around, and it appears as though you succeeded >because of two factors in your favor, which are not in mine: > >1) You probably know what you're doing already >2) You're not using an iBook. > >The CPAN modules look for that file, >"/System/Library/Perl/darwin/CORE/perl.h," and that file does not >exist on my iBook, so the modules don't install. I thought it might >just be MY iBook, that maybe I screwed something up trying to get >DBI installed, but this weekend I visited a friend who has both an >iBook and a G4 PowerBook. His PowerBook has that file in the correct >location, his iBook does not. > >Now I have to hit the Macintosh boards, see if I can just copy that >file into the correct location, or if something else has to happen >first, or if there is something about the G3 iBook that doesn't >agree with that file, or something else entirely is going on. > >Thanks for the help, though.
I have an iBook, and it has perl.h in /System/Library/Perl/darwin/CORE/perl.h. I'm running Mac OS X 10.1.4, but I've been running DBI successfully since OS X was released -- as long as I was using the most current development tools. I install using the CPAN method. (I do use "force install DBD::mysql" to install the MySQL driver, because it doesn't pass the tests since I don't allow anonymous access to my MySQL server.) > > > > >At 3:25 PM -0700 5/23/02, Stephen Keller wrote: >>Well, I just tried to install the latest DBI on a MacOSX machine using the >>following: >> >>sudo perl -MCPAN -e shell >>cpan> install DBI >> >>It went without a flaw and passed all of its tests. The test system is >>running MacOSX 10.1.4 on a G4 Cube. The development tools are reasonably up >>to date and I've never tweaked the perl installation there (other than some >>other CPAN modules), so it should be in the default install location. >> >>Is it possible that your development tools need to be updated? That's a >>separate step from the regular system upgrades, I think. >> >>Stph >> >>> -----Original Message----- >>> From: Patrick Burke [mailto:[EMAIL PROTECTED]] >>> Sent: Thursday, May 23, 2002 1:54 PM >>> To: [EMAIL PROTECTED] >>> Subject: DBI on Mac OSX? >>> >>> >>> Hi, >>> >>> Sorry to bother you, but I've been having a heckuva time >>> trying to get >>> DBI on my Mac OSX, and I was wondering if you've heard from others in >>> similar situations. >>> >>> I downloaded DBI 1.22 from CPAN. When I try to run the module ("perl >>> Makefile.PL"), I get the following error: >>> >>> Begin Error: >>> *************** >>> 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") >>> **************** >>> End Error >>> >>> Have you heard from others who have done this successfully >>> the way OSX >>> is set up by default? Or did they install a new distribution of perl, >>> the way the error message suggests? >>> >>> Thanks. >>> >>> >>> > >Patrick Burke >Project Manager >Biological Sciences Division Information Systems >The University of Chicago >[EMAIL PROTECTED]
