473,395 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

MySql DBI drivers for OSX

perl version v5.8.9 built for darwin-2level
mysql Ver 14.14 Distrib 5.5.8, for osx10.6 (i386) using readline 5.1
DBD-mysql-4.018
DBI version 1.615
Mac OS X version 10.6.5

I have been wrestling with installing the DBI Driver for Mac OS X for a few days now. I have never installed it anywhere else. I blindly installed from MacPorts and that failed. I then tried installing from CPAN (perl -MCPAN ...), and then went to compiling it myself. I have read many posts and have tried many fixes. I am currently getting the following error when doing "make test". I checked that the file "libmysqlclient.16.dylib" does in fact exist and that it is is at the following two locations...

/usr/local/mysql/lib/
/usr/local/mysql/lib/mysql/

It looks like it just cant find the library, but I cant figure out where it's trying to find it.
here is the output from "make test"
Expand|Select|Wrap|Line Numbers
  1. PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
  2. t/00base....................ok 1/6                                           
  3. #   Failed test 'use DBD::mysql;'
  4. #   at t/00base.t line 21.
  5. #     Tried to use 'DBD::mysql'.
  6. #     Error:  Can't load '/Users/peter/DBD/DBD-mysql-4.018/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/peter/DBD/DBD-mysql-4.018/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Library not loaded: libmysqlclient.16.dylib
  7. #   Referenced from: /Users/peter/DBD/DBD-mysql-4.018/blib/arch/auto/DBD/mysql/mysql.bundle
  8. #   Reason: image not found at /opt/local/lib/perl5/5.8.9/darwin-2level/DynaLoader.pm line 230.
  9. #  at (eval 7) line 2
  10. # Compilation failed in require at (eval 7) line 2.
  11. # BEGIN failed--compilation aborted at (eval 7) line 2.
  12. t/00base....................NOK 2/6FAILED--Further testing stopped: Unable to load DBD::mysql
  13. make: *** [test_dynamic] Error 255
  14.  
Dec 28 '10 #1
1 2245
chorny
80 Expert
First you should report this error to port maintainer, he/she would know more about Mac problems.

By looking at cpantesters reports, I see that there are no similar failures.
Dec 28 '10 #2

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

Similar topics

5
by: Mike Henley | last post by:
considering the recent changes to the mysql licensing terms, which meant the php5 team had to adopt sqlite instead into the php5 and drop mysql stuff from the standard language distro (as i...
20
by: Mr Dygi | last post by:
Hi, PHP 4.3.4 installed manually from package *.zip and Apache 2. I have a problem with this simple code: <?php $link = mysql_connect("127.0.0.1","","") or die("Could not connect: " ....
1
by: Kerry Shetline | last post by:
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) --------------------- .......
3
by: Shank | last post by:
I need to harvest data from MySQL tables. My experience is with MSSQL and Enterprise Manager. I also connect to MSSQL with Access and ODBC. I don't need to manage anything. I just need the data....
0
by: Arnold | last post by:
Hi, I'm using visual studio .NET 2003 enterprise and MySQL 5.0. I've created a database project in wich I like to create scripts for stored procedures and queries. I've created a connection...
3
by: Yannick Turgeon | last post by:
Hello all, I'm using: - A97 (front-end) - MySQL drivers 3.51 - MySQL 4.0.18 (back-end) I've got a MySQL table connected to an Access DB throw an ODBC link. When I connect to this table, no...
2
by: Mark Watkins | last post by:
Anyone know how to connect to a MySQL database in ASP? Could someone point me to sample code. I don't need extras to makes this work, correct?
6
by: Steven Caliendo | last post by:
Hi, I have a MySQL database on a remote server that I need to connect to. I can't seem to figure out what the connectionstring should be? I've searched through the help files, but all I can...
3
by: Jeremy Dillinger | last post by:
I am trying to design a program that will use data from a MySQL database. Currently all the data is being used with PHP scripts from a website. I am also trying to build a software solution that...
7
by: BillCo | last post by:
I need to Connect to an online mySQL database from Access using JET ODBC with no saved DSN. Anyone out there who as made this work and can give example of how it's done? I've seen lots of posts...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.