2014-03-12 42 views
2

我在我的ubuntu-12.04 -x86_64 m/c上使用rvm安裝ruby 2.1.1。我已經紅寶石1.9.3,2.1.0但對於紅寶石2.1.1我收到錯誤。在ubuntu-12.04 -x86_64上安裝ruby 2.1.1出錯(3)

我使用這個命令

 
    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. 
+0

您是否嘗試過通過閱讀錯誤消息中提到的日誌文件,它可能包含進一步的,有用的信息。 – toro2k

回答

9

嘗試了這一點:

  1. 獲取最新版本的RVM的:

    rvm get head 
    
  2. 重新加載RVM:

    rvm reload 
    
  3. 安裝Ruby 2.1.1:

    rvm install ruby-2.1.1 
    
+0

感謝Sachin它的工作原理.. –

+0

你是如何在Ubuntu上獲得rvm的 – TheJKFever

+0

@TheJKFever,意味着你想知道如何在Ubuntu上安裝rvm? –