在ubuntu-12.04 -x86_64上安装ruby 2.1.1收到错误(3)

时间:2014-03-12 14:04:13

标签: ruby ubuntu rvm

我在我的ubuntu-12.04 -x86_64 m / c上使用rvm安装ruby 2.1.1。我已经ruby 1.9.3,2.1.0但是对于ruby 2.1.1我收到了错误。

我正在使用此命令

  rvm install ruby-2.1.1 --verify-downloads 1

错误:

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.
Requirements installation successful.
Installing Ruby from source to: /home/kiran/.rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, this may take a while depending on your connection...
curl: (3)  malformed
There was an error(3), please check /home/kiran/.rvm/log//*.log. Next we'll try to fetch via http.
Trying ftp:// URL instead.
curl: (3)  malformed
There was an error(3), please check /home/kiran/.rvm/log//*.log
There has been an error fetching the ruby interpreter. Halting the installation.

1 个答案:

答案 0 :(得分:9)

试试这个:

  1. 获取最新版本的RVM:

    rvm get head
    
  2. 重新加载RVM:

    rvm reload
    
  3. 安装ruby 2.1.1:

    rvm install ruby-2.1.1