 |
 |
perl cpan failure with 10.3
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status:
Offline
|
|
After installing 10.3, I noted that my cpan-installed perl modules were MIA.. I figured it might be good to redownload and install them anyway... I tried once and failed, so I then renamed my ~/.cpan to remove any chance of conflict there and launched cpan again... still the same result...
Checking if your kit is complete...
Looks good
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/5.8.1/darwin-thread-multi-2level/CORE/perl.h")
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
ideas?
thanks,
Mike
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Aug 2001
Status:
Offline
|
|
Originally posted by Zim:
After installing 10.3, I noted that my cpan-installed perl modules were MIA.. I figured it might be good to redownload and install them anyway... I tried once and failed, so I then renamed my ~/.cpan to remove any chance of conflict there and launched cpan again... still the same result...
Did you have to reconfigure your cpan after you moved it? I wonder if it's reading a different .cpan (like in ~root/.cpan). It seems to be looking in the appropriate path for the perl.h. Bizarre.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status:
Offline
|
|
Originally posted by riverfreak:
Did you have to reconfigure your cpan after you moved it? I wonder if it's reading a different .cpan (like in ~root/.cpan). It seems to be looking in the appropriate path for the perl.h. Bizarre.
It did go thru the config again, wince it could not find a .cpan directory.
But I have no file in /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/perl.h
for it to find.
Mike
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status:
Offline
|
|
I'm officially "unproud" of this hack, but I found what looked like the right files in /System/Library/Perl/darwin/CORE (vs. /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE
)
I created links to the files, and was able to get MIME::Lite to install.
I'm now trying to get DBI installed, and have made use of this hint
http://nntp.x.perl.org/group/perl.macosx/6257
to almost get there.. but not quite yet. Will post more when I get it.
Mike
(Last edited by Zim; Oct 26, 2003 at 12:40 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2001
Status:
Offline
|
|
I believe /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/perl.h is installed by Xcode. (It is a header file, after all.) I have it on my system.
|
|
|
| |
|
|
|
 |
|
 |
|
Registered User
Join Date: Oct 2003
Location: Montr�al
Status:
Offline
|
|
Originally posted by Zim:
After installing 10.3, I noted that my cpan-installed perl modules were MIA.. I figured it might be good to redownload and install them anyway... I tried once and failed, so I then renamed my ~/.cpan to remove any chance of conflict there and launched cpan again... still the same result...
ideas?
thanks,
Mike
Just read this:
10.3: DBD::mysql install trouble and fix
at:
http://www.macosxhints.com/article.p...31015212910375
It seems with every release, DBD::mysql does not install be it via CPAN or manual compile. Panther ships with perl 5.8.1 RC3, multi-threads enabled. Previous hints posted on how to upgrade from Jaguar's perl version of 5.6 to 5.8.0 warned that multi-threading was not supported by DBD::mysql, and further searching showed that multi-threading was supported if you were to revert gcc to 2.95 for the compile. None of these hints will help with Panther...
I started searching some email archives and came up with a few posting the same errors I was experiencing but no solutions. So I started hacking away by following all past tips on compiling DBD::mysqlfor OSX 10.2 and perl 5.8.0 with no success. I then remembered installing Bundle::Msql at one point on a different system and decided to try that ... success!
Read on for more on the situation, and official word from Apple on a solution...
Bundle::Msql installs the DBD::mysql package but seems to do it differently than DBD::mysql itself. I sent my success scenario to the macosx@perl.org list (list archive) and received an interesting reply that may very well apply to more than just DBD::mysql:
On 10/15/03 5:58 PM, "Edward Moy" wrote:
We recently discovered the DBD::mysql problem as well. The patch is to edit /System -> Library -> Perl -> 5.8.1 -> darwin-thread-multi-2level -> Config.pm, replacing:
ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc'
with
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc'
Unfortunately, this change is too late to get into Panther.
---------------------------------------------------------------
Edward Moy
Apple
I have now tested this under perl installed by Panther and it seems to solve the problem ... one thing to note is that I read elsewhere that fink updates @INC and that some packages installed by fink may cause conflicts; specifically noted was Storable.
Hope it'll work 
(Last edited by Lecynique; Oct 28, 2003 at 08:54 AM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status:
Offline
|
|
Thanks!!!!
I found that I had to do a "force install Bundle::Msql", as it failed a very few of the tests in the "make test" section, but my perl scripts will now run again (big sigh of relief).
Code:
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/akmisc.t 351 1 0.28% 44
t/mysql.t 68 5 7.35% 23-24 46-48
t/mysql2.t 37 1 2.70% 2
1 test and 14 subtests skipped.
Failed 3/17 test scripts, 82.35% okay. 7/746 subtests failed, 99.06% okay.
The "missing" perl files (that I temporarily symlinked) are installed with the Xcode developer tools... odd, but whatever.
Cheers,
Mike
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2002
Status:
Offline
|
|
Humm..
I'm also trying to install DBD::mysql module but with no luck.
I changed the Config.pm file as described here to no avail. DBI installs flawlessly but DBD::mysql complains that it can't find DBI.pm.
I'm not quite sure what to do about it.
|
|
PowerBook G4 800Mhz
1GB RAM
60GB 7200rpm Hard Drive
Running Tiger
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|