By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,136 Members | 2,135 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,136 IT Pros & Developers. It's quick & easy.

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

P: 2
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
Share this Question
Share on Google+
1 Reply


100+
P: 268
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.