472,133 Members | 1,062 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

Problem with install DBD::mysql on Mac os x 10.3

Hello there,

I've been trying to install DBD::mysql on Mac OS X Server 10.3 for 2 days, but it still raises error. So I'm going to send this message to ask for help. Any help will be much appreciated.

Here is what I've tried to install the DBD::mysql module:

1> Download DBD-mysql-2.9003 and un-zip it

2> cd to DBD-mysql-2.9003 directory

3> add 'env' in front of MACOSX in mysql_config & Makefile.PL

4> run: perl Makefile.PL

Unrecognized argument in LIBS ignored: '-arch'

Unrecognized argument in LIBS ignored: 'i386'

Unrecognized argument in LIBS ignored: '-arch'

Unrecognized argument in LIBS ignored: 'ppc'

Unrecognized argument in LIBS ignored: '-pipe'

Using DBI 1.40 (for perl 5.008001 on darwin-thread-multi-2level) installed in /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI

Writing Makefile for DBD::mysql



So apparently it raises error when I tried to "make".

5> To fix all unrecognized arguments, I run:

perl Makefile.PL --cflags="-I/usr/include/mysql -fno-omit-frame-pointer" --libs="-L/usr/lib/mysql -lmysqlclient -lz -lm"

This runs successfully.

6> run: make

cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI -I/usr/include/mysql -fno-omit-frame-pointer -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 -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI -I/usr/include/mysql -fno-omit-frame-pointer -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" mysql.c

Running Mkbootstrap for DBD::mysql ()

chmod 644 mysql.bs

rm -f blib/arch/auto/DBD/mysql/mysql.bundle

LD_RUN_PATH="/usr/lib" /usr/bin/perl myld env 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/lib/mysql -lmysqlclient -lz -lm

ld: warning -L: directory name (/usr/local/lib) does not exist

ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of relocation entry 53 in section (__TEXT,__text) invalid

....

make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1



I have no idea what is going on here. Can anyone help me out with this. Any hint is much appreciated.

Thanks alot

Vannie
Aug 24 '06 #1
1 2185
vssp
268 100+
Hai refer thsi link its use full for install mysql mac os

http://developer.apple.com/internet/...urce/osdb.html
Aug 25 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Randell D. | last post: by
1 post views Thread by Kerry Shetline | last post: by
reply views Thread by Madhu Nair | last post: by
reply views Thread by Yun Guan | last post: by
1 post views Thread by Yun Guan | last post: by
3 posts views Thread by thisisazam | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.