安装Mysql数据库出现一些问题,我大概了解了下是少了依赖的库,但是不知道该怎么解决,问问各位牛人了,不慎感激啊!
error: Failed dependencies:
libc.so.6()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libc.so.6(GLIBC_2.3.4)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libc.so.6(GLIBC_2.4)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libcrypt.so.1()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libcrypt.so.1(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libdl.so.2()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libdl.so.2(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libgcc_s.so.1()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libm.so.6()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libm.so.6(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libnsl.so.1()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libpthread.so.0()(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
libpthread.so.0(GLIBC_2.3.4)(64bit) is needed by MySQL-server-community-5.1.47-1.rhel5.x86_64
4 个解决方案
安装下列so所对应的包。你在你的安装光盘里搜libc,libcrypt,libdl,libm,libnsl,libpthread的安装包
libc.so.6
libcrypt.so.1
libdl.so.2
libm.so.6
libnsl.so.1
libpthread.so.0
yum -y install mysql-server
or
sudo apt-get install mysql-server
用yum,他会自己解决依赖问题,如果不能用yum,就要找到光盘里面的rpm包,然后按缺包的名字找,大部分都是devel包,差什么装什么,反正多了也不会有问题。