Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Perl DBD module for MySQL?

Perl DBD module for MySQL?
Thread Tools
fishbulbunderhill
Guest
Status:
Reply With Quote
Dec 1, 2000, 07:36 PM
 
Has anyone been able to install Msql-Mysql-modules-*.tar.gz ?

I have the precompiled mysql pkg from http://www-u.life.uiuc.edu/~mwvaugh/MacOSX/Packages/ and can compile and install the Bundle DBI stuff, but can't get the Mysql driver to compile.

The version I'm using is Msql-Mysql-modules-1.2215

The make fails with the following error:
LD_RUN_PATH="/usr/local/lib/mysql" cc -o ../blib/arch/auto/DBD/mysql/mysql.bundle -bundle -undefined suppress dbdimp.o mysql.o -L/usr/local/lib/mysql -L/usr/local/lib/mysql -lmysqlclient
/usr/bin/ld: table of contents for archive: /usr/local/lib/mysql/libmysqlclient.a is out of date; rerun ranlib(1) (can't load from it)
make[1]: *** [../blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
make: *** [subdirs] Error 2

Has anyone had any luck?

[This message has been edited by fishbulbunderhill (edited 12-01-2000).]
     
Senior User
Join Date: Jul 2000
Status: Offline
Reply With Quote
Dec 4, 2000, 12:10 AM
 
Well, i'm not sure where the Package installs MySQL and it's related lib's, however, after getting the above error, I woud run this command at the prompt and try to complie it again:

ranlib /usr/local/lib/mysql/libmysqlclient.a
     
fishbulbunderhill
Guest
Status:
Reply With Quote
Dec 4, 2000, 05:18 PM
 
Originally posted by cwasko:
Well, i'm not sure where the Package installs MySQL and it's related lib's, however, after getting the above error, I woud run this command at the prompt and try to complie it again:

ranlib /usr/local/lib/mysql/libmysqlclient.a
You were right about the location of the lib's...
but I got the following after running 'ranlib' the make still fails:

[localhost:local/lib/mysql] root# ranlib /usr/local/lib/mysql/libmysqlclient.a
ranlib: file: /usr/local/lib/mysql/libmysqlclient.a(my_pthread.o) has no symbols
ranlib: file: /usr/local/lib/mysql/libmysqlclient.a(my_thr_init.o) has no symbols
ranlib: file: /usr/local/lib/mysql/libmysqlclient.a(thr_mutex.o) has no symbols
ranlib: file: /usr/local/lib/mysql/libmysqlclient.a(bmove.o) has no symbols

[This message has been edited by fishbulbunderhill (edited 12-04-2000).]

[This message has been edited by fishbulbunderhill (edited 12-04-2000).]
     
Fresh-Faced Recruit
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 8, 2000, 11:55 AM
 
There is a related thread at http://forums.macnn.com/cgi-bin/Foru...ML/000284.html

What is the error message you get from make when it fails?
Maybe we can solve these problems together
     
Fresh-Faced Recruit
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 11, 2000, 12:49 PM
 
I have posted the set of steps to get DBD::mysql operational on the forum thread at http://forums.macnn.com/cgi-bin/Foru...ML/000284.html

Happy perl-ing.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:19 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2