RedHat 下自带的mysql rpm包为mysql-3.23.54a-11.i386.rpm,如果在你安装操作系统时没有安装mysql,后来安装mysql时.
shell> rpm -ivh mysql-3.23.54a-11.i386.rpm
warning: mysql-3.23.54a-11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
perl-DBD-MySQL is needed by mysql-3.23.54a-11
系统会提示包倚赖关系,在系统盘中找,有perl-DBD-MySQL-2.1021-3.i386.rpm包,安装之.
shell> rpm -ivh perl-DBD-MySQL-2.1021-3.i386.rpm
..........................................
error: Failed dependencies:
libmysqlclient.so.10 is needed by perl-DBD-MySQL-2.1021-3
在系统光盘上找,在google上找相关文档,关于libmysqlclient.so.10的有价值的信息一点都没有.找了一台在安装操作系统时就安装了mysql的机器,用rpm -qa去查有关mysqlclient的信息,结果压根什么都没有.
于是尝试安装mysql-3.23.54a-11.i386.rpm加--nodeps参数.
shell>rpm -ivh mysql-3.23.54a-11.i386.rpm --nodeps
warning: mysql-3.23.54a-11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:mysql ########################################### [100%]
再安装perl-DBD-MySQL-2.1021-3.i386.rpm
shell>rpm -ivh perl-DBD-MySQL-2.1021-3.i386.rpm
warning: perl-DBD-MySQL-2.1021-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:perl-DBD-MySQL ########################################### [100%]
faint,竟然好了.原来是这两个包相互倚赖.狂晕.如果不知道这回事,那去找libmysqlclient.so.10的相关包.可真得是辛苦啊,介于自己在安装的时候的费力,拿出来给不知道的朋友共享.希望可以会对有用的朋友参考......