Faqts : Computers : Programming : Shopping For You : PHP : Common Problems : Errors

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 52 people (27%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Unable to load dynamic library mysql.so - libmysqlclient.so.10 - Why??

May 7th, 2004 11:28
Davide Rambaldi, Jaz Brown, John,


PHP may not have been compiled to make a shared version of its MySQL 
library. Look at the output from phpinfo() at the Configure Command 
used 
when building PHP. If it has "--with-mysql" then this will make only 
the 
static library. Recompile PHP with something like 
"--with-mysql=shared,/usr". 
Do a "locate mysql.so" or "find / -name mysql\.so" to check for the 
existance of mysql.so on your system. In my case, it's stored in 
"/usr/lib/php/extensions/no-debug-non-zts-20020429/mysql.so". 
From [email protected] 
The problem could be libmysqlclient.so (shared library) 
1. 'locate libmysqlclient.so.X' 
2  The easy way "cp libmysqlclient.so.X /usr/lib/" 
see also: 
	http://dev.mysql.com/doc/mysql/en/Source_notes-Linux.html