Mac OS X on Perl List,

OK, I recently upgraded my own powerbook to Panther (10.3.2) and then a few weeks later I upgraded my server to OS X Server 10.3.2.

After upgrading my "regular" Mac OS X to Panther the problem I had building DBD-mysql could be fixed by this email from Edward Moy. I went though the Mac OS X Perl archives at perl.org and I realized that SO many people have had this same problem Edward Moy's email is now famous -- posted and reposted lots of places across the Mac OS X Perl archive.

At 15-43 -0600 2004-02-16, jfb 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

This tiny omission in the Config.pm file distributed with Panther seems to have caused countless people to arrive at this list and get stuck with exactly this problem.


On my regular Panther install making this change fixed the problem right away and in fact it was this list which got me on the right track.

Now, here's my problem -- although I *was* able to fix the problem on my Powerbook (Mac OS X), I still can't get it installed on my server (Mac OS X Server)

I ran into the same problem, and then I went to the Config.pm file as suggested above and added the "env" to the right line.

But I still get errors during the "make" for DBD-mysql-- using either the manual way to build or CPAN

Here is a clip from my terminal:

[www:~/perl_source/DBD-mysql-2.9003] jason% make
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql.pm blib/lib/Mysql.pm
cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI -I/usr/include/mysql -O3 -fno-omit-frame-pointer -arch i386 -arch ppc -pipe -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" dbdimp.c
cc: cannot read specs file for arch `i386'
make: *** [dbdimp.o] Error 1


I DO have Xcode installed. Also, I tried updating to X Code 1.1 (first try was 1.0) and then tried to build DBD-mysql again, same error (pasted above).


Any suggestions? Thanks in advance. Jason Boldt




Reply via email to