繁体   English   中英

在ubuntu 10.10上用rvm安装ruby失败

[英]Installing ruby with rvm fails on ubuntu 10.10

我一直在尝试使用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.

最终,我也设法使它也以这种方式工作。 使用.curlrc也是一个好主意,但是我不喜欢将密码以纯文本格式存储在计算机上。

rvm install 1.9.2-p136 --proxy http://用户名:密码@域:端口

我认为您可以将这些行放在~/.curlrc文件中:

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

我是从curl手册页上获得的,可以在此处在线找到

引用:

..配置文件是一个文本文件,可以在其中写入命令行参数,然后将其用作实际在命令行上写入的参数。 ..

..长选项名称可以有选择地在配置文件中给出,而不必带有双引号。 ..

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM