如何在Xubuntu 14.04上安装RVM

时间:2015-05-29 18:34:51

标签: ruby-on-rails ruby bash localization rvm

我尝试使用this教程安装RVM。但是我在这一步$ \curl -L https://get.rvm.io | bash -s stable --ruby上遇到了错误。我收到这条消息:

oleg@olegx301a:~$ \curl -L https://get.rvm.io | bash -s stable --ruby
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    330      0 --:--:-- --:--:-- --:--:--   331
100 22721  100 22721    0     0  30495      0 --:--:-- --:--:-- --:--:-- 30495
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: Signature made вт, 31-бер-2015 00:52:13 +0300 EEST using RSA key ID BF04FF17
gpg: Can't check signature: public key not found
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 '/home/oleg/.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:

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

or if it fails:

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

the key can be compared with:

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

也许问题是由于我的本地化 - 它是乌克兰。终端输出gpg: Signature made вт, 31-бер-2015 00:52:13 +0300 EEST using RSA key ID BF04FF17中有一行вт, 31-бер-2015,即3月31日星期二。

1 个答案:

答案 0 :(得分:2)

这是我使用RVM工具包安装Ruby的命令:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 && \
curl -sSL https://get.rvm.io | bash -s stable --ruby=1.9.3

您可以将Ruby版本更改为您需要的任何内容,例如2.3-head