2011-10-06 146 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