在 ubuntu 10.10 上使用 rvm 安装 ruby 失败
我一直在尝试使用 rvm 安装 ruby 1.9.2,但无法让它工作。
我位于代理后面,但我已经配置了 http_proxy 和 https_proxy。
输出:
ta@ci:~$ 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.
I have been trying to install ruby 1.9.2 using rvm but I'm unable to get it to work..
I am behind a proxy, but I have configured both http_proxy and https_proxy.
Output:
ta@ci:~$ 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最终我也设法让它以这种方式工作。使用 .curlrc 也是一个好主意,但我不喜欢将密码以纯文本形式存储在计算机上。
rvm install 1.9.2-p136 --proxy http://用户名:密码@域:端口
Eventually I managed to get it to work this way as well. Using the .curlrc is also a good idea, but I don't like storing my password as plain text on the machine.
rvm install 1.9.2-p136 --proxy http://username:password@domain:port
我认为您可以将这些行放入您的
~/.curlrc
文件中:我从
curl
手册页中获取此内容,可以在 在此处在线。引用:
I think you can put these lines in your
~/.curlrc
file:I got this from the
curl
manual page, which can be found online here.Quote: