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

Problem installing DBD::mysql on a Mac OS X Panther system

P: n/a
I've successfully installed MySQL and the Perl DBI module, but when I
try to install DBD::mysql, it keeps failing like this:

-------------------- (from the CPAN shell) ---------------------
....
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
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 -lz -lm
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

cpan>
----------------------------------------------------------------

I've been doing a little Perl programming for a while now, but I'm far
from an expert, and I've been relying on simply using whatever was
already installed on my web hosting system, where the DBI and DBD::mysql
modules were pre-installed without me having to do a thing to get them
there.

I don't even have a clue where to start in evaluating what this
installation error is about. I'm just trying to follow instructions that
I've founding Googling around for help on installing Perl packages on a
Mac OS X system, and none of that help covers what to do when an
installation like this fails for God knows what reason.

Help!
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <DEP2c.200567$uV3.814804@attbi_s51>, Kerry Shetline
<ke***@shetline.com> wrote:
I've successfully installed MySQL and the Perl DBI module, but when I
try to install DBD::mysql, it keeps failing like this:

-------------------- (from the CPAN shell) ---------------------
....
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
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 -lz -lm
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

cpan>
----------------------------------------------------------------

I've been doing a little Perl programming for a while now, but I'm far
from an expert, and I've been relying on simply using whatever was
already installed on my web hosting system, where the DBI and DBD::mysql
modules were pre-installed without me having to do a thing to get them
there.

I don't even have a clue where to start in evaluating what this
installation error is about. I'm just trying to follow instructions that
I've founding Googling around for help on installing Perl packages on a
Mac OS X system, and none of that help covers what to do when an
installation like this fails for God knows what reason.

Help!

You can install it via fink --> http://fink.sourceforge.net

$ fink list dbi
dbi-pm 1:1.38-3
dbi-pm560 1:1.35-3
dbi-pm581 1:1.38-1
libdbi 0.7.2-1
libdbi-dev 0.7.2-1
libdbi-drivers-mysql 0.7.1-1
libdbi-shlibs 0.7.2-1

$ fink install libdbi-drivers-mysql

--
Koncept <<
"Contrary to popular belief, the most dangerous animal is not the lion or
tiger or even the elephant. The most dangerous animal is a shark riding
on an elephant, just trampling and eating everything they see." - Jack Handey
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.