error:package mysql-client is not relocatable

wolfreturn發表於2015-09-22
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         : /> Summary     : MySQL: a very fast and reliable SQL database server
[root@mysql ~]#

從結果看到
Relocations: (not relocatable)

是無法修改安裝目錄的,也就是不能重定位,只有去掉 --prefix引數了。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24742969/viewspace-1806125/,如需轉載,請註明出處,否則將追究法律責任。

相關文章