rpm -ivh MySQL-client-5.5.17-1.linux2.6.i386.rpm --prefix=/mysql
提示错误:error:package mysql-client is not relocatable
解决方法:rpm -qpi MySQL-client-5.5.17-1.linux2.6.i386.rpm |head
error:package mysql-client is not relocatable
error:package mysql-client is not relocatable
[root@mysql ~]# rpm -qpi MySQL-server-5.6.26-1.el6.x86_64.rpm |head
warning: MySQL-server-5.6.26-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Name : MySQL-server Relocations: (not relocatable)
Version : 5.6.26 Vendor: Oracle and/or its affiliates
Release : 1.el6 Build Date: Wed 15 Jul 2015 05:43:40 AM CST
Install Date: (not installed) Build Host: viking16
Group : Applications/Databases Source RPM: MySQL-5.6.26-1.el6.src.rpm
Size : 249581924 License: Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Under GPL license as shown in the Description field.
Signature : DSA/SHA1, Thu 16 Jul 2015 01:17:32 AM CST, Key ID 8c718d3b5072e1f5
Packager : MySQL Release Engineering <mysql-build@oss.oracle.com>
URL : http://www.mysql.com/
Summary : MySQL: a very fast and reliable SQL database server
[root@mysql ~]#
从结果看到
Relocations: (not relocatable)
是无法修改安装目录的,也就是不能重定位,只有去掉 --prefix参数了。
提示错误:error:package mysql-client is not relocatable
解决方法:rpm -qpi MySQL-client-5.5.17-1.linux2.6.i386.rpm |head
error:package mysql-client is not relocatable
error:package mysql-client is not relocatable
[root@mysql ~]# rpm -qpi MySQL-server-5.6.26-1.el6.x86_64.rpm |head
warning: MySQL-server-5.6.26-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Name : MySQL-server Relocations: (not relocatable)
Version : 5.6.26 Vendor: Oracle and/or its affiliates
Release : 1.el6 Build Date: Wed 15 Jul 2015 05:43:40 AM CST
Install Date: (not installed) Build Host: viking16
Group : Applications/Databases Source RPM: MySQL-5.6.26-1.el6.src.rpm
Size : 249581924 License: Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Under GPL license as shown in the Description field.
Signature : DSA/SHA1, Thu 16 Jul 2015 01:17:32 AM CST, Key ID 8c718d3b5072e1f5
Packager : MySQL Release Engineering <mysql-build@oss.oracle.com>
URL : http://www.mysql.com/
Summary : MySQL: a very fast and reliable SQL database server
[root@mysql ~]#
从结果看到
Relocations: (not relocatable)
是无法修改安装目录的,也就是不能重定位,只有去掉 --prefix参数了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24742969/viewspace-1806125/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24742969/viewspace-1806125/