Unless you've specifically build mysql without the client libraries that would probably work.
But maybe the mysql_config program you've provided does not point to the right locations. (by the way, installing mysql should install mysql_config, that directory might not be in your path - it could be installed in /usr/sbin or /usr/local/bin for instance)
what does
mysql_config --libs
print?
Mine (on linux) gives
-L/usr/lib/mysql -lmysqlclient
Which means that libmysqlclient.so* should be installed in /usr/lib/mysql. Which is correct for my system.
| [reply] [d/l] [select] |
The pre-build does not fix the problem with the DBD:Mysql.
However just as I was about to throw the machine out in to the rain I was able to get DBI to work. ( At least at first glance. )
In my MySQL libs I had three instances of libmysqlclient.
libmysqlclient.so.15.0.0
libmysqlclient.so.15
libmysqlclient.so
.so.15 and .so were links to libmysqlclient.so.15.0.0 so I removed them.
I then ran make again on DBD-mysql-4.005 and then make install. I then recreated the links I had removed.
I then ran the test.pl which seemed to work as it gave me a good error : )
DBI connect('database=test;host=localhost','joe',...) failed: Access denied for user 'joe'@'localhost' (using password: YES) at test.pl line 7
I will run more tests today and then report back if there are any other problems.
| [reply] |
| [reply] |
install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.8/i86pc-solaris/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15: open failed: No such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-solaris/DynaLoader.pm line 230.
You need to install the MySQL client libraries, which you can find here: MySQL downloads
Just reread your thread, where you said that you'd compiled MySQL from source, in which case you should already have the client libraries. So ignore the above. What about trying the MySQL prebuilt packages instead?
Clint
| [reply] |
The pre-build does not fix the problem with the DBD:Mysql.
However just as I was about to throw the machine out in to the rain I was able to get DBI to work. ( At least at first glance. )
In my MySQL libs I had three instances of libmysqlclient.
libmysqlclient.so.15.0.0
libmysqlclient.so.15
libmysqlclient.so
.so.15 and .so were links to libmysqlclient.so.15.0.0 so I removed them.
I then ran make again on DBD-mysql-4.005 and then make install.
I then ran the test.pl which seemed to work as it gave me a good error : )
DBI connect('database=test;host=localhost','joe',...) failed: Access denied for user 'joe'@'localhost' (using password: YES) at test.pl line 7
I will run more tests today and then report back if there are any other problems.
| [reply] |