在 ubuntu 10.10 上使用 rvm 安装 ruby​​ 失败

发布于 2024-12-08 04:52:31 字数 1397 浏览 0 评论 0原文

我一直在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

早乙女 2024-12-15 04:52:31

最终我也设法让它以这种方式工作。使用 .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

紫轩蝶泪 2024-12-15 04:52:31

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

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

我从 curl 手册页中获取此内容,可以在 在此处在线

引用:

.. 配置文件是一个文本文件,可以在其中写入命令行参数,然后使用这些参数就像在实际命令行上写入一样。 ..

.. 可以选择在配置文件中给出长选项名称,而不需要开头的双破折号。 ..

I think you can put these lines in your ~/.curlrc file:

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

I got this from the curl manual page, which can be found online here.

Quote:

.. The config file is a text file in which command line arguments can be written which then will be used as if they were written on the actual command line. ..

.. Long option names can optionally be given in the config file without the initial double dashes. ..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文