当前位置: 技术问答>linux和unix
libmysqlclient.so.16 找不到库.
来源: 互联网 发布时间:2016-10-12
本文导语: 程序需要 libmysqlclient.so.16 找不到库. CentOS下 /usr/lib/mysql 下有 libmysqlclient.so.15, 装不上 so.16 ////////////////////////////////////////////////////////////// [root@srv temp]# yum install mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm Loaded plugin...
程序需要
libmysqlclient.so.16 找不到库.
CentOS下
/usr/lib/mysql 下有 libmysqlclient.so.15, 装不上 so.16
//////////////////////////////////////////////////////////////
[root@srv temp]# yum install mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.nl.kernel.org
* base: mirrors.nl.kernel.org
* extras: centos.weepeetelecom.nl
* updates: mirrors.nl.kernel.org
Setting up Install Process
Examining mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm: mysqlclient16-devel-5.1.30-1.el4.remi.i386
Marking mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysqlclient16-devel.i386 0:5.1.30-1.el4.remi set to be updated
--> Processing Dependency: mysqlclient16 = 5.1.30-1.el4.remi for package: mysqlclient16-devel
--> Finished Dependency Resolution
mysqlclient16-devel-5.1.30-1.el4.remi.i386 from /mysqlclient16-devel-5.1.30-1.el4.remi.i386 has depsolving problems
--> Missing Dependency: mysqlclient16 = 5.1.30-1.el4.remi is needed by package mysqlclient16-devel-5.1.30-1.el4.remi.i386 (/mysqlclient16-devel-5.1.30-1.el4.remi.i386)
Error: Missing Dependency: mysqlclient16 = 5.1.30-1.el4.remi is needed by package mysqlclient16-devel-5.1.30-1.el4.remi.i386 (/mysqlclient16-devel-5.1.30-1.el4.remi.i386)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
libmysqlclient.so.16 找不到库.
CentOS下
/usr/lib/mysql 下有 libmysqlclient.so.15, 装不上 so.16
//////////////////////////////////////////////////////////////
[root@srv temp]# yum install mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.nl.kernel.org
* base: mirrors.nl.kernel.org
* extras: centos.weepeetelecom.nl
* updates: mirrors.nl.kernel.org
Setting up Install Process
Examining mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm: mysqlclient16-devel-5.1.30-1.el4.remi.i386
Marking mysqlclient16-devel-5.1.30-1.el4.remi.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysqlclient16-devel.i386 0:5.1.30-1.el4.remi set to be updated
--> Processing Dependency: mysqlclient16 = 5.1.30-1.el4.remi for package: mysqlclient16-devel
--> Finished Dependency Resolution
mysqlclient16-devel-5.1.30-1.el4.remi.i386 from /mysqlclient16-devel-5.1.30-1.el4.remi.i386 has depsolving problems
--> Missing Dependency: mysqlclient16 = 5.1.30-1.el4.remi is needed by package mysqlclient16-devel-5.1.30-1.el4.remi.i386 (/mysqlclient16-devel-5.1.30-1.el4.remi.i386)
Error: Missing Dependency: mysqlclient16 = 5.1.30-1.el4.remi is needed by package mysqlclient16-devel-5.1.30-1.el4.remi.i386 (/mysqlclient16-devel-5.1.30-1.el4.remi.i386)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
|
一个简单的方法是:ln -s mysqlclient.so.15 mysqlclient.so.16
当然你还可以安装mysql来实现这个目的
当然你还可以安装mysql来实现这个目的
|
yum库里的软件版本都是唯一的 你自己下载rpm包 如果依赖一定版本的包yum库里没有的话 当然不可以。
1.试试楼上说的ln -s /usr/lib/mysql/mysqlclient.so.15 /usr/lib/mysql/mysqlclient.so.16
2.下载rpm包 那么就用rpm -ivh 包名 来安装 遇到依赖的包继续下载 继续安装
1.试试楼上说的ln -s /usr/lib/mysql/mysqlclient.so.15 /usr/lib/mysql/mysqlclient.so.16
2.下载rpm包 那么就用rpm -ivh 包名 来安装 遇到依赖的包继续下载 继续安装