I've installed ActivePerl 5.8.8 on my MacBook Pro with OS X Leopard (in
/usr/local/ActivePerl-5.8/bin) and I had everything working as it should.
I've also installed MAMP so that I can get PHP and MySQL running, with some
virtual hosts, and these are also running OK.

I've just started on a project that requires access to a MySQL database and
so I need the DBD::mysql driver. I've used PPM to install this - version
3.002 was offered - and it installed OK. However when I try to get a
database handle I get the following message:

"install_driver(mysql) failed: Can't load
'/Users/ericrobertson/Library/ActivePerl/lib/auto/DBD/mysql/mysql.bundle'
for module DBD::mysql:
dlopen(/Users/ericrobertson/Library/ActivePerl/lib/auto/DBD/mysql/mysql.bund
le, 1): no suitable image found.  Did find:
        
/Users/ericrobertson/Library/ActivePerl/lib/auto/DBD/mysql/mysql.bundle:
unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 at /usr/local/ActivePerl-5.8/lib/DynaLoader.pm line 233.
 at (eval 72)[/usr/local/ActivePerl-5.8/lib/DBI.pm:744] line 3
Compilation failed in require at (eval
72)[/usr/local/ActivePerl-5.8/lib/DBI.pm:744] line 3.
Perhaps a required shared library or dll isn't installed where expected."

I see that at
aspn.activestate.com/ASPN/CodeDoc/DBD-mysql/DBD/mysql/INSTALL.html there's a
reference to the CPAN distribution of version 2.1004 of that module which in
the Known Problems mentions a somewhat similar error message due to a
problem with the linker flags and libmysqlclient and I wondered if this had
any relevance to my problem since the MAMP mysql will not be in a standard
location.

Can someone please suggest what I need to do to resolve this problem.

Thanks.

Eric Robertson


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to