[英]Installing Ruby on Ubuntu 10.10 using RVM, problem with gem
[英]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.