Linux - Dependency libmysqlclient.so.15 not found

user345824 picture user345824 · Jan 17, 2012 · Viewed 18.6k times · Source

I start the instalation, now i receive a error for file dependencies

see:

root@ca [~/sitebuilder]# rpm -Uhv updates/*.rpm
error: Failed dependencies:
libmysqlclient.so.15()(64bit) is needed by php5sb-5.2.1-10swsoft.x86_64
libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by php5sb-5.2.1-10swsoft.x86_64

How to install a libmysqlclient.so.15 dependence on centos?

Thanks.

Answer

lai picture lai · Jan 17, 2012

I have encountered this problem before.

I checked libmysqlclient.so version, it's libmysqlclient.so.16 but not libmysqlclient.so.15.

so I used MySQL-shared-compat rpm package to solve this.

run:

#rpm -qp --provides MySQL-shared-compat-5.1.47-1.rhel5.x86_64.rpm
MySQL-shared 
libmysqlclient.so.12()(64bit) 
libmysqlclient.so.14()(64bit) 
libmysqlclient.so.14(libmysqlclient_14)(64bit) 
libmysqlclient.so.15()(64bit) 
libmysqlclient.so.15(libmysqlclient_15)(64bit) 
libmysqlclient.so.16()(64bit) 
libmysqlclient.so.16(libmysqlclient_16)(64bit) 
libmysqlclient_r.so.12()(64bit) 
libmysqlclient_r.so.14()(64bit) 
libmysqlclient_r.so.14(libmysqlclient_14)(64bit) 
libmysqlclient_r.so.15()(64bit) 
libmysqlclient_r.so.15(libmysqlclient_15)(64bit) 
libmysqlclient_r.so.16()(64bit) 
libmysqlclient_r.so.16(libmysqlclient_16)(64bit) 
MySQL-shared-compat = 5.1.47-1.rhel5