安装rvm出现问题

Step 1 安装rvm:curl -sSL https://get.rvm.io | bash -s stable

[root@centosvm local]# curl -sSL -L -k https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: 于 2015年03月31日 星期二 05时52分13秒 CST 创建的签名,使用 RSA,钥匙号 BF04FF17
gpg: 无法检查签名:No public key
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).

GPG signature verification failed for ‘/usr/local/rvm/archives/rvm-1.26.11.tgz’ - ‘https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc’!
try downloading the signatures:

gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

or if it fails:

command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -

the key can be compared with:

https://rvm.io/mpapis.asc
https://keybase.io/mpapis

如果出现上面的信息,说面安装失败,是因为签名的在解密的时候,不能使用gpg2加密算法进行解密,导入加密算法:

执行:

curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
结果:
[root@centosvm local]# curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg: 密钥 D39DC0E3:公钥“Michal Papis (RVM signing) mpapis@gmail.com”已导入
gpg: 合计被处理的数量:1
gpg: 已导入:1 (RSA: 1)

再次执行安装指令:

[root@centosvm local]# curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: 于 2019年04月11日 星期四 05时52分13秒 CST 创建的签名,使用 RSA,钥匙号 BF04FF17
gpg: 完好的签名,来自于“Michal Papis (RVM signing) mpapis@gmail.com
gpg: 警告:这把密钥未经受信任的签名认证!
gpg: 没有证据表明这个签名属于它所声称的持有者。
主钥指纹: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3
子钥指纹: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17
GPG verified ‘/usr/local/rvm/archives/rvm-1.26.11.tgz’
Creating group ‘rvm’

Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:

  • First you need to add all users that will be using rvm to ‘rvm’ group,
    and logout - login again, anyone using rvm will be operating with umask u=rwx,g=rwx,o=rx.

  • To start using RVM you need to run source /etc/profile.d/rvm.sh
    in all your open shell windows, in rare cases you need to reopen all shell windows.

Administrator,

Thank you for using RVM!

We sincerely hope that RVM helps to make your life easier and more enjoyable!!!

~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

正确安装rvm以后,当前命令窗口激活rvm:
source /etc/profile.d/rvm.sh

查看rvm的版本:

[root@centosvm ~]# rvm -v
rvm 1.26.11 (latest) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/]

到此,rvm就正常安装了,可以使用rvm来安装ruby了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值