2011-08-29 47 views
1

我想在我的機器上安裝Ruby EE,但無法執行。 ping production.cf.rubygems.org也有效。可能是什麼問題?REE安裝

[email protected]:~/Downloads$ rvm install ree 
Installing Ruby Enterprise Edition from source to: /usr/local/rvm/rubies/ree-1.8.7-2011.03 
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03) 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0 184 0  0 0  0  0  0 --:--:-- 0:00:05 --:--:--  0Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz 
    0 7713k 0 16150 0  0 3108  0 0:42:21 0:00:05 0:42:16 17497 
curl: (23) Failed writing body (0 != 16150) 
ERROR: There was an error, please check /usr/local/rvm/log/ree-1.8.7-2011.03/*.log. Next we'll try to fetch via http. 
Trying http:// URL instead. 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0 184 0  0 0  0  0  0 --:--:-- 0:00:03 --:--:--  0Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz 

    0 7713k 0 16150 0  0 4375  0 0:30:05 0:00:03 0:30:02 18692 

curl: (23) Failed writing body (0 != 16150) 
ERROR: There was an error, please check /usr/local/rvm/log/ree-1.8.7-2011.03/*.log 
ERROR: There has been an error while trying to fetch the source. 
Halting the installation. 

謝謝。

+0

你可以發佈日誌文件內容嗎? –

回答

5

消息:

Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz 

是您的線索。您正在運行一臺機器範圍的RVM安裝程序,但試圖以不具有root用戶權限的用戶身份安裝新的ruby。

嘗試:

rvmsudo rvm install ree 

或者以root登錄,並重試該命令。

+0

謝謝。我從未想到這一點。 – Prashanth

+0

如果是開發機器,最好只卸載RVM(使用'rvm implode'),然後以普通用戶身份重新安裝。在開發機器上以root身份運行RVM是PITA。 –