Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 27642
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: CAPTTOFU [...] cpan.org
Requestors: nferraz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 4.005
Fixed in: (no value)



Subject: Wrong lib path during install (Mac OS X 10.4.9, Perl 5.8.6, MySQL 5.0.41)
Download (untitled) / with headers
text/plain 1.1k
After running perl Makefile.PL make make test I got the error: install_driver(mysql) failed: Can't load '/private/var/root/.cpan/build/DBD-mysql-4.005-9Lhbsu/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/private/var/root/.cpan/build/DBD-mysql-4.005-9Lhbsu/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib Referenced from: /private/var/root/.cpan/build/DBD-mysql-4.005-9Lhbsu/blib/arch/auto/DBD/mysql/mysql.bundle The problem is that the file "/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib" does not exist. The correct is "/usr/local/mysql/lib/libmysqlclient.15.dylib". The workaround is to create the symbolic link "/usr/local/mysql/lib/mysql" pointing to "/usr/local/mysql/lib". ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql The funny thing is that mysql.bundle compilation looks for the wrong path even when I specify a different location: perl Makefile.PL --libs='-L/usr/local/mysql/lib -lmysqlclient -lz -lm' That's why I'm reporting this bug -- the configuration shouldn't "guess" the path if we have given a value.
Download (untitled) / with headers
text/plain 1.3k
Doing all my dev for DBD on OS X, I can't duplicate this error. I also have mysql installed in /usr/local/mysql. On Tue Jun 19 11:32:28 2007, NFERRAZ wrote: Show quoted text
> After running > > perl Makefile.PL > make > make test > > I got the error: > > install_driver(mysql) failed: Can't load > '/private/var/root/.cpan/build/DBD-mysql-4.005- > 9Lhbsu/blib/arch/auto/DBD/mysql/mysql.bundle' > for module DBD::mysql: > dlopen(/private/var/root/.cpan/build/DBD-mysql-4.005- > 9Lhbsu/blib/arch/auto/DBD/mysql/mysql.bundle, > 2): Library not loaded: > /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib > Referenced from: > /private/var/root/.cpan/build/DBD-mysql-4.005- > 9Lhbsu/blib/arch/auto/DBD/mysql/mysql.bundle > > The problem is that the file > "/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib" does not exist. > The > correct is "/usr/local/mysql/lib/libmysqlclient.15.dylib". > > The workaround is to create the symbolic link > "/usr/local/mysql/lib/mysql" pointing to "/usr/local/mysql/lib". > > ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql > > > The funny thing is that mysql.bundle compilation looks for the wrong > path even when I specify a different location: > > perl Makefile.PL --libs='-L/usr/local/mysql/lib -lmysqlclient -lz > -lm' > > That's why I'm reporting this bug -- the configuration shouldn't > "guess" > the path if we have given a value.
RT-Send-CC: nferraz [...] gmail.com
Download (untitled) / with headers
text/plain 923b
On Wed Dec 05 22:08:18 2007, CAPTTOFU wrote: Show quoted text
> Doing all my dev for DBD on OS X, I can't duplicate this error. I also > have mysql installed in /usr/local/mysql. >
> > The problem is that the file > > "/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib" does not exist. > > The > > correct is "/usr/local/mysql/lib/libmysqlclient.15.dylib". > > > > The funny thing is that mysql.bundle compilation looks for the wrong > > path even when I specify a different location: > > > > perl Makefile.PL --libs='-L/usr/local/mysql/lib -lmysqlclient -lz > > -lm' > > > > That's why I'm reporting this bug -- the configuration shouldn't > > "guess" > > the path if we have given a value.
Just to report that I have the exact same problem. This is OS X 10.5 with MySQL 5.0.45. I've tried to investigate what it could be the reason. I thought of `mysql_config' not in $PATH, but after fixing that, nothing changed. -- Cosimo
Download (untitled) / with headers
text/plain 223b
I have had the same issue as well. This is how I worked around it to get the module installed: sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql The lib path appears to have an extra "/mysql" on the end of it.
Download (untitled) / with headers
text/plain 307b
I cannot reproduce this, either on 10.4 or 10.5.1, various versions of MySQL. I suspect there was an issue with what mysql_config was reporting to DBD::mysql. DBD::mysql merely takes what mysql_config gives it and uses those values. If this bug persists, please print the output of mysql_config to the bug.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.