用rpm包装Mysql
用rpm包装Mysql,用rpm包装Mysql
RHEL 4
从安装盘上找rpm 包。在第二张上, mysql-4.1.7-4.RHEL4.1.i386.rpm 。
rpm -ivh mysql-4.1.7-4.RHEL4.1.i386.rpm
warning: mysql-4.1.7-4.RHEL4.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60eerror: Failed dependencies: perl(DBI) is needed by mysql-4.1.7-4.RHEL4.1.i386 perl-DBD-MySQL is needed by mysql-4.1.7-4.RHEL4.1.i386 perl-DBI is needed by mysql-4.1.7-4.RHEL4.1.i386 Suggested resolutions: perl-DBD-MySQL-2.9004-3.1.i386.rpm perl-DBI-1.40-5.i386.rpm
于是在盘上接着找,也是在第二张光盘上。
rpm -ivh perl-DBI-1.40-5.i386.rpmwarning: perl-DBI-1.40-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60ePreparing... ########################################### [100%] 1:perl-DBI ########################################### [100%]
OK
接着 rpm -ivh perl-DBD-MySQL-2.9004-3.1.i386.rpmwarning: perl-DBD-MySQL-2.9004-3.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60eerror: Failed dependencies: libmysqlclient.so.14 is needed by perl-DBD-MySQL-2.9004-3.1.i386 Suggested resolutions: mysql-4.1.7-4.RHEL4.1.i386.rpm
咦,libmysqlclient.so 这个文件装了Mysql才有阿。
perl-DBD-MySQL-2.9004-3.1.i386.rpm
mysql-4.1.7-4.RHEL4.1.i386.rpm 这两个包原来是互为依赖的。
这时候我才知道 --no-deps这个参数的作用。
于是
rpm -ivh mysql-4.1.7-4.RHEL4.1.i386.rpm --no-deps
rpm -ivh perl-DBD-MySQL-2.9004-3.1.i386.rpm
于是搞定。