error:package mysql-client is not relocatable

本文讨论了在使用rpm命令安装MySQL时遇到的包不可重定位错误,并提供了通过检查安装包属性和去除--prefix参数来解决问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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参数了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24742969/viewspace-1806125/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24742969/viewspace-1806125/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值