DBD::mysql

  • pvannie
  • Born
  • Born
  • pvannie
  • Posts: 2

Post 3+ Months Ago

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
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

I have a much easier idea for you.

MAC OS X is basically FBSD under the covers; more or less. They hav ported (for lack of a better term) the ports colelction to mac OS X.

http://darwinports.opendarwin.org/ports ... substr=DBD

Go there, get the ports, and simply run a single-lined command.

All will be well in the land of ports.

Cheers.
  • pvannie
  • Born
  • Born
  • pvannie
  • Posts: 2

Post 3+ Months Ago

Hi,
I clicked on the link you suggested, then licked on p5-dbd-mysql 3.0006. But it said the requested URL was not found on this server.
Can you give me some more hint please. Thanks so much.
--pvannie
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

You can't just click on the link, you have to install the ports collection
Go to the main page, and read.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 63 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.