Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBI and DBD::MySQL (Panther)

1 view
Skip to first unread message

Conrad Schilbe

unread,
Oct 15, 2003, 4:52:06 PM10/15/03
to m...@customvisuals.com, mac...@perl.org
Mike,


I was encountering the same errors as you in my quest to install DBD::mysql
and discovered that under the following setup:

Custom installed Perl 5.8.1 RC3 - No multi-threading
ggc 2.95 - via /usr/sbin/gcc_select 2

Removing /sw/lib/perl5/Storable.pm & /sw/lib/perl5/auto/Storable

I was able to compile and install Bundle::Msql which installs DBD::mysql.

I cannot isolate wich of the above steps actually fixed the problem but I
noted this difference in the make procedure:

Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f ../blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/lib" MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined
dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o -L/usr/local/mysql/lib -o
../blib/arch/auto/DBD/mysql/mysql.bundle -L/usr/local/mysql/lib
-lmysqlclient -lm -lz
chmod 755 ../blib/arch/auto/DBD/mysql/mysql.bundle
cp mysql.bs ../blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 ../blib/arch/auto/DBD/mysql/mysql.bs


Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/lib" /usr/local/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/lib -lz


As you can see the first one carried on past the previous error point.


I have a feeling that Bundle::Msql would successfully install under the
default apple environment without switching gcc, without recompiling perl,
and without removing Storable... I simply combined the methods of previous
posts and hoped for the best. Later resorting to a memory of installing
Bundle::Msql elsewhere.

Someone should likely attempt to install Bundle::Msql under a clean OSX
(Panther) install and report back on the outcome...


cschilbe


Edward Moy

unread,
Oct 15, 2003, 7:58:55 PM10/15/03
to Conrad Schilbe, m...@customvisuals.com, mac...@perl.org
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

David Wheeler

unread,
Oct 15, 2003, 8:05:09 PM10/15/03
to Edward Moy, mac...@perl.org, m...@customvisuals.com, Conrad Schilbe
On Wednesday, October 15, 2003, at 04: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.

Is there a patch that could go into the Perl sources themselves?

Regards,

David

--
David Wheeler AIM: dwTheory
da...@kineticode.com ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
Jabber: The...@jabber.org
Kineticode. Setting knowledge in motion.[sm]

Edward Moy

unread,
Oct 15, 2003, 8:28:39 PM10/15/03
to David Wheeler, mac...@perl.org, m...@customvisuals.com, Conrad Schilbe
In hints/darwin.sh, replace

*) ld="MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;

with

*) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;

Hopefully, this will go into 5.8.2.

Ed

Conrad Schilbe

unread,
Oct 15, 2003, 9:00:10 PM10/15/03
to Edward Moy, mac...@perl.org
Edward,

I edited /System/Library/Perl/5.8.1/darwin-thread-multi-2level/Config.pm,
switched perl back to the apple install and had no problems building
DBD::mysql.

Your information is greatly appreciated!

c

Conrad Schilbe

unread,
Oct 15, 2003, 9:04:48 PM10/15/03
to Edward Moy, David Wheeler, mac...@perl.org
I would think this should stay out of the perl sources since it is not a bug
of perl's... Thoughts?

I also just discovered that this fixes a build problem with Data::Dumper...
Or so it would appear. It's possible this will effect several packages. The
patch should not be put in all the perl sources should it?

C

Conrad Schilbe

unread,
Oct 16, 2003, 2:44:54 AM10/16/03
to Edward Moy, mac...@perl.org
To clear up any confusion for others that may pick up this thread, my
previous email stated that a patch should not be made to perl sources... I
mistook the details below as implying that each perl module (i.e.
DBD::mysql) be patched for an error in the Config.pm module. In actuality, I
believe, the patch is intended for the perl source itself... My bad.

A demonstration of when to leave things up to those who know what they are
talking about...

C.

On 10/15/03 6:28 PM, "Edward Moy" <em...@apple.com> wrote:

0 new messages