Feb172014
在线备用:VPSMate安装及错误解决办法-安装PHP和mysql软件源ius安装失败
登陆面板后你可能会发现MYSQL等不能安装,提示软件源 IUS 安装失败 的错误(安装的是V1.0 B10的版本)
如下提示:error: skipping http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm – transfer failed – Unknown or unexpected error
解决办法:
首先安装GCC
[root@localhost ~]# yum -y install gcc
#
[root@localhost ~]# yum -y install gcc-c++
安装IUS源
[root@localhost ~]# rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/i386/ius-release-1.0-11.ius.el6.noarch.rpm
CENTOS 64位系统用下面指令
[root@localhost ~]# rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm
如果你安装时出现了如下错误提示
[root@localhost ~]# rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm Retrieving http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm warning: /var/tmp/rpm-tmp.cXugsB: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY error: Failed dependencies: epel-release is needed by ius-release-1.0-11.ius.centos6.noarch
输入如下指令
[root@localhost ~]# rpm --import /etc/pki/rpm-gpg/RPM*
再试一下安装
[root@localhost ~]# rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm
如果还是报错,执行以下命令
[root@localhost ~]# rpm -ich ius-release-1.0-11.ius.centos6.noarch.rpm --force --nodeps
虽然还是报错,但这时已经安装好了
warning: ius-release-1.0-11.ius.centos6.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY ########################################### [100%] ########################################### [100%]