install ruby from through a proxy - rvm linux

1,213 views
Skip to first unread message

krzysztof cierpisz

unread,
Feb 8, 2010, 10:29:33 AM2/8/10
to rvm (Ruby Version Manager)
I figured that out myself, but maybe someone else will find it useful.

when you are behind a firewall and try to install ruby:

$ rvm install 1.9.1
Installing Ruby from source to: /home/chris/.rvm/rubies/ruby-1.9.1-
p378
Downloading ruby-1.9.1-p378, this may take a while depending on your
connection...

curl: (7) couldn't connect to host

just add to ~/.curlrc your proxy setting:

e.g.
$ cat ~/.curlrc
proxy = example.proxy_name.com:80

thanks,
chris

Wayne E. Seguin

unread,
Feb 8, 2010, 11:02:54 AM2/8/10
to rubyversi...@googlegroups.com
krzysztof cierpisz,

Now THAT is useful!!! Thank you!

Additionally you should be able to 'rvm update --head', open a new shell and do:

rvm install X --proxy "example.proxydomain.com:80"

I however love the .curlrc way, brilliant!

  ~Wayne
Reply all
Reply to author
Forward
0 new messages