2 messages in com.mysql.lists.perlRe: Install on Mac os X 10.3.7
FromSent OnAttachments
Thomas Register08 Mar 2005 09:04 
David Jacopille10 Mar 2005 11:34 
Subject:Re: Install on Mac os X 10.3.7
From:David Jacopille (djac@mfs.com)
Date:03/10/2005 11:34:39 AM
List:com.mysql.lists.perl

Regarding DBD-mysql-2.9004 install troubles on OS X 10.3:

I've had a lot of trouble with DBD-mysql-2.9004 on OS X in the past and I believe part of the problem was some weirdness of the MySQL install that comes with OS X Server and also an error in the Perl configuration that has been pointed out by several people. Based on your output it looks like that's your problem - step 1 will take care of it. You can also fix that line of code in the makefile before running make but altering the Config.pm will fix the problem permanently this build and other also.

I just performed the following procedure on 10.3.8 Server with a fresh build of MySQL-MAX 4.1.10 (after deleting all other references).

Step 1 Fix a bit of code in a Perl config file which is in error in all Panther installations: sudo pico /System/Library/Perl/5.8.1/darwin-thread-multi-2level/Config.pm

Look for the line: ld=¹MACOSX_DEVELOPMENT_TARGET=10.3 cc¹

replace with ld=¹env MACOSX_DEVELOPMENT_TARGET=10.3 cc¹

save file

Step 2 Download the DBD-mysql module, version 2.9004 from: http://www.cpan.org/modules/by-category/07_Database_Interfaces/DBD/ and scroll to the mysql DBD interfaces looking for 2.9004

Step 3 Change to the directory containing the download and uncompress it with the following command: tar xzf DBD-mysql-2.9004.tar.gz

Step 4 Change to the new directory: cd DBD-mysql-2.9004

Step 5 Build the makefile for this computer using the following command on one line: perl Makefile.PL --testdb=test --testuser=root --testpassword=1984 --testhost=localhost

Step 6 Compile the makefile with the following command: Make

Step 7 Test the makefile with the following command. You can expect three errors for this test which will not affect the outcome of the installation. make test

Step 8 Install the make file: sudo make install

David Jacopille MFS

On 3/8/05 12:04 PM, "Thomas Register" <tea@speakeasy.net> wrote:

On Sun, 23 Jan 2005, James Burnette wrote: I am trying to install DBD-mysql-2.9004 on Mac OS X 10.3.7 with perl v5.8.1-RC3 built for darwin-thread-multi-2level and MySQL 4.1.9.Make fails with this message:

make ... LD_RUN_PATH="/usr/lib" /usr/bin/perl myld MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.bundle -L/usr/local/mysql/lib -lmysqlclient -lm -lz make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 255

I found a reference somewhere with google (don't have it right now, or I'd give credit where it's due) that suggested removing the "myld" from makefile. I wasn't sure how best to do this, but found that executing makefile with the nocatchstderr option eliminated the problem:

perl makefile --nocatchstderr

I'm now doing selects and inserts into my database. (after taking care of a password problem. Sigh).

You can see the reference to the option inside makefile.pl. Hope this helps: I've found that using Perl and MySQL can be a RPitA. Interesting and educational, though.

I'm also running 10.3.7. Interesting point; I'm running Jaguar on another machine, with Perl 5.8.1 (that was an experience it itself), and it had no problem.

"MFS Relay Service" made the following annotations on 03/10/2005 02:42:33 PM