Linux - Dependency libmysqlclient.so.15 not found

时光总嘲笑我的痴心妄想 提交于 2019-12-02 10:14:35

问题


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.


回答1:


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



回答2:


The missing package was Mysql-Shared-compat. found it here http://mirrors.dedipower.com/www.mysql.com/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.23-1.sles11.x86_64.rpm




回答3:


You can try to find the right package by the following command:

$ sudo yum whatprovides libmysqlclient.so.15
libmysqlclient15-5.0.95-5.w5.i386
libmysqlclient15-devel-5.0.95-5.w5.i386
cpanel-mysql-libs-5.0.96-1.cp1136.i386 : The shared libraries required for MySQL clients

then:

$ sudo yum reinstall WHATEVER_THE_PACKAGE_NAME_IS

You may double check the package name by doing yum search package_name.

If not found, you may try to fix your yum repositories e.g. by configuring Webtatic Yum Repository.

To set up the repository, install the webtatic-release RPM:

Webtatic EL6 for CentOS/RHEL 6:

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

Webtatic EL5.1 for CentOS/RHEL 5:

rpm -Uvh http://repo.webtatic.com/yum/el5/latest.rpm

Webtatic 5 for CentOS/RHEL 5:

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

and repeat the search/reinstall process again.


If you're running cPanel, you may try to run the following script:

/scripts/check_cpanel_rpms --fix

If won't help, remove the broken package e.g. rpm -e cpanel-mysql-5.0.96-1.cp1136 and run the check command again.

If still doesn't work, another thing could be to recompile your Apache (only if your LAMP is broken) by:

/scripts/easyapache

Related

CentOS

  • libmysqlclient.so.15: cannot open shared object file: No such file or directory
  • Linux - Dependency libmysqlclient.so.15 not found

Ubuntu

  • mysql2.so: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory



回答4:


Like the answer of @lai

I install the MySQL-shared-compat-5.1.47-1.rhel5.x86_64.rpm. But it didn't work.

And then I install the MySQL-shared-5.1.47-1.rhel5.x86_64.rpm. It worked!

I hope this can help you. Good luck :)



来源:https://stackoverflow.com/questions/8889603/linux-dependency-libmysqlclient-so-15-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!