Linux - 找不到依赖项 libmysqlclient.so.15

发布于 2024-12-27 06:43:55 字数 383 浏览 2 评论 0原文

我开始安装,现在我收到文件依赖项错误,

请参阅:

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 dependency on centos?

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

风和你 2025-01-03 06:43:55

我以前遇到过这个问题。

我检查了libmysqlclient.so版本,它是libmysqlclient.so.16,但不是libmysqlclient.so.15。

所以我使用MySQL-shared-compat rpm包来解决这个问题。

跑步:

#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

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
脱离于你 2025-01-03 06:43:55

您可以尝试通过以下命令找到正确的包:

$ 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

您可以通过执行 yum search package_name 来仔细检查包名称。

如果找不到,您可以尝试修复 yum 存储库,例如通过配置 Webtatic Yum 存储库。

要设置存储库,请安装 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

并再次重复搜索/重新安装过程。


如果您正在运行cPanel,您可以尝试运行以下脚本:

/scripts/check_cpanel_rpms --fix

如果没有帮助,请删除损坏的软件包,例如rpm -e cpanel-mysql-5.0.96-1。 cp1136 并再次运行检查命令。

如果仍然不起作用,另一件事可能是通过以下方式重新编译 Apache(仅当您的 LAMP 损坏时):

/scripts/easyapache

相关

CentOS

Ubuntu < /强>

  • <一href="https://stackoverflow.com/questions/8456300/mysql2-so-libmysqlclient-r-so-15-cannot-open-shared-object-file-no-such-file">mysql2.so:libmysqlclient_r。 so.15:无法打开共享对象文件:没有这样的文件或目录

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

Ubuntu

凹づ凸ル 2025-01-03 06:43:55

就像@lai的回答一样,

我安装了MySQL-shared-compat-5.1.47-1.rhel5.x86_64.rpm。但这没有用。

然后我安装MySQL-shared-5.1.47-1.rhel5.x86_64.rpm。成功了!

我希望这可以帮助你。祝你好运 :)

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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文