2011-10-06 143 views
0

我一直在嘗試使用RVM安裝Ruby 1.9.2,但我無法得到它的工作失敗..用RVM安裝Ruby在Ubuntu 10.10

我是一個代理之後,但我同時配置http_proxy和https_proxy。

輸出:

[email protected]:~$ rvm install 1.9.2-p136 
Installing Ruby from source to: /home/ta/.rvm/rubies/ruby-1.9.2-p136, this may take a while depending on your cpu(s)... 

ruby-1.9.2-p136 - #fetching 
ruby-1.9.2-p136 - #downloading ruby-1.9.2-p136, this may take a while depending on your connection... 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:03 --:--:--  0 
curl: (22) The requested URL returned error: 407 
ERROR: The requested url does not exist: 'https://rvm.beginrescueend.com/src/ruby-1.9.2-p136.tar.bz2' 
Trying http:// URL instead. 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- --:--:-- --:--:--  0 
curl: (22) The requested URL returned error: 407 
ERROR: There was an error, please check /home/ta/.rvm/log/ruby-1.9.2-p136/*.log 
ERROR: There has been an error while trying to fetch the source. 
Halting the installation. 
ERROR: There has been an error fetching the ruby interpreter. Halting the installation. 
+1

你讀過嗎? :http://beginrescueend.com/workflow/proxy/ – rdvdijk

+0

@rdvdijk是的,但代理需要認證,並且在beginrescueend.com沒有這樣的例子 – Despo

回答

0

我想你可以把這些線在你~/.curlrc文件:

proxy-user = "username:password" 
proxy = "http://proxy.domain.com:8080" 

我得到這個從curl手冊頁,可以找到online here

報價:

。該配置文件是在命令行參數可以寫成如果它們被寫入實際的命令行上,然後將使用的文本文件。 ..

..長的選項名稱可以選擇性地在配置文件中給出,而不用初始雙破折號。 ..

+0

謝謝@rdvdijk。最終我設法讓它工作,但這也很方便知道。謝謝你的幫助 – Despo