Linux AS 4.7 最小化安装后安装RPM包安装 MYSQL 、
依赖关系解除!!
root@localhost RPMS]# rpm -ivh mysql*
warning: mysql- 4.1.22 -2.el4.i386.rpm: V3 DSA signature: NOKEY, key ID db 42a 60e
error: Failed dependencies:
perl(DBI) is needed by mysql- 4.1.22 -2.el4.i386
perl(DBI) is needed by mysql-bench- 4.1.22 -2.el4.i386
openssl-devel is needed by mysql-devel- 4.1.22 -2.el4.i386
perl(DBI) is needed by mysql-server- 4.1.22 -2.el4.i386
perl-DBD-MySQL is needed by mysql-server- 4.1.22 -2.el4.i386
perl-DBI is needed by mysql-server- 4.1.22 -2.el4.i386
Suggested resolutions:
/var/spool/up2dateopenssl-devel- 0. 9.7a -43.17.el4_6.1.i386.rpm
/var/spool/up2dateperl-DBD-MySQL-2.9004-3.1.i386.rpm
/var/spool/up2dateperl-DBI-1.40-9.i386.rpm
2、
[root@localhost RPMS]# rpm -ivh perl-DBI-1.40-9.i386.rpm
warning: perl-DBI-1.40-9.i386.rpm: V3 DSA signature: NOKEY, key ID db 42a 60e
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
3、
依次安装下列包
e2fsprogs-devel-1.35-12.17.el4.i386.rpm
krb5-devel- 1.3.4 -60.el4.i386.rpm
zlib-devel- 1.2.1 .2-1.2.i386.rpm
openssl-devel- 0. 9.7a -43.17.el4_6.1.i386.rpm
[root@localhost RPMS]# rpm -ivh perl-DBD-MySQL-2.9004-3.1.i386.rpm
warning: perl-DBD-MySQL-2.9004-3.1.i386.rpm: V3 DSA signature: NOKEY, key ID db 42a 60e
error: Failed dependencies:
libmysqlclient.so.14 is needed by perl-DBD-MySQL-2.9004-3.1.i386
Suggested resolutions:
/var/spool/up2datemysql- 4.1.22 -2.el4.i386.rpm
《注:在这一步中libmysqlclient.so.14 不是一个RPM包
查看其应属于是哪个RPM包的
rpm -q --redhatprovides libmysqlclient.so.14
mysql- 4.1.22 -2.el4
<得出libmysqlclient.so.14 是mysql-4.1.22-2.el4包的文件〉
继续依次安装 下列包
mysql- 4.1.22 -2.el4.i386.rpm
mysql-devel- 4.1.22 -2.el4.i386.rpm
mysql-server- 4.1.22 -2.el4.i386.rpm
mysql-bench- 4.1.22 -2.el4.i386.rpm
mysqlclient10- 3.23.58 -4.RHEL4.1.i386.rpm
mysqlclient10-devel- 3.23.58 -4.RHEL4.1.i386.rpm
所需包依次关系
perl-DBI-1.40-9.i386.rpm
e2fsprogs-devel-1.35-12.17.el4.i386.rpm
krb5-devel- 1.3.4 -60.el4.i386.rpm
zlib-devel- 1.2.1 .2-1.2.i386.rpm
openssl-devel- 0. 9.7a -43.17.el4_6.1.i386.rpm
rpm -ivh mysql- 4.1.22 -2.el4.i386.rpm
mysql-devel- 4.1.22 -2.el4.i386.rpm
mysql-server- 4.1.22 -2.el4.i386.rpm
mysql-bench- 4.1.22 -2.el4.i386.rpm
mysqlclient10- 3.23.58 -4.RHEL4.1.i386.rpm
mysqlclient10-devel-3.23.58-4.RHEL4.1.i386.rpm
附加:
rpm -q --redhatprovides libmysqlclient.so.14
来查看一下这个文件属于哪个RPM包说,
要用前面这个参数前要先安装rpmdb-redhat这个软件包
来查看一下这个文件属于哪个RPM包说,
要用前面这个参数前要先安装rpmdb-redhat这个软件包