从 rpm 安装会出现奇怪的依赖性错误

从 rpm 安装会出现奇怪的依赖性错误

我正在尝试从 rpm 文件安装 mysql,这就是得到的结果。

libaio.so.1 is needed by MySQL-server-5.6.14-1.el6.i686
libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.6.14-1.el6.i686
libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6 is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.0) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.1) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.1.2) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.1.3) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.10) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.2) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.2.3) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.3) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.3.3) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.4) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.7) is needed by MySQL-server-5.6.14-1.el6.i686
libc.so.6(GLIBC_2.8) is needed by MySQL-server-5.6.14-1.el6.i686
libcrypt.so.1 is needed by MySQL-server-5.6.14-1.el6.i686
libcrypt.so.1(GLIBC_2.0) is needed by MySQL-server-5.6.14-1.el6.i686
libdl.so.2 is needed by MySQL-server-5.6.14-1.el6.i686
libdl.so.2(GLIBC_2.0) is needed by MySQL-server-5.6.14-1.el6.i686
libdl.so.2(GLIBC_2.1) is needed by MySQL-server-5.6.14-1.el6.i686
libgcc_s.so.1 is needed by MySQL-server-5.6.14-1.el6.i686
libgcc_s.so.1(GCC_3.0) is needed by MySQL-server-5.6.14-1.el6.i686
libgcc_s.so.1(GLIBC_2.0) is needed by MySQL-server-5.6.14-1.el6.i686
libm.so.6 is needed by MySQL-server-5.6.14-1.el6.i686
libm.so.6(GLIBC_2.0) is needed by MySQL-server-5.6.14-1.el6.i686
libm.so.6(GLIBC_2.1) is needed by MySQL-server-5.6.14-1.el6.i686
libpthread.so.0 is needed by MySQL-server-5.6.14-1.el6.i686
libpthread.so.0(GLIBC_2.0) is needed by MySQL-server-5.6.14-1.el6.i686
libpthread.so.0(GLIBC_2.1) is needed by MySQL-server-5.6.14-1.el6.i686
libpthread.so.0(GLIBC_2.2) is needed by MySQL-server-5.6.14-1.el6.i686
libpthread.so.0(GLIBC_2.3.2) is needed by MySQL-server-5.6.14-1.el6.i686
librt.so.1 is needed by MySQL-server-5.6.14-1.el6.i686
librt.so.1(GLIBC_2.2) is needed by MySQL-server-5.6.14-1.el6.i686
libstdc++.so.6 is needed by MySQL-server-5.6.14-1.el6.i686
libstdc++.so.6(CXXABI_1.3) is needed by MySQL-server-5.6.14-1.el6.i686
libstdc++.so.6(GLIBCXX_3.4) is needed by MySQL-server-5.6.14-1.el6.i686
libstdc++.so.6(GLIBCXX_3.4.11) is needed by MySQL-server-5.6.14-1.el6.i686

答案1

Linux问题网站论坛:

简单的方法是备份你的 /usr/lib/libstdc++.so.6.0.8,删除链接 libstdc++.so.6,并使用与你的 glibc 兼容的替代品:通常是来自软件包 libstdc++6_4.4.5-8_i386.deb ( 32bits ) 的 libstdc++.so.6.0.13http://ftp.de.debian.org/debian/pool...4.5-8_i386.deb64位http://ftp.de.debian.org/debian/pool....5-8_amd64.deb

使用以下命令解压:ar -x .deb && tar xvf data.tar.gz, ... 并将 libstdc++.so.6.0.13 复制到 /usr/lib/,然后:# ln -s libstdc++.so.6.0.13 libstdc++.so.6

参考:http://packages.debian.org/squeeze/libstdc++6

答案2

您如何安装它?rpm -ivh?您可以使用“yum install filename.rpm”进行安装。因此 yum 将尝试自行解决依赖关系。

另一方面,这个 5.6.15 的链接可能会有用 http://tecadmin.net/step-to-install-mysql-5-6-12-on-centos-6-and-rhel-6/#

相关内容