Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby gem installation problem on Mac which is behind firewall

Tags:

ruby

proxy

gem

Please provide me solution for the problem of, 1) How to install ruby gems on a Mac (OS X 10.5.1) which is behind a corporate firewall.

Regards, Sun

like image 255
sun Avatar asked Jun 24 '10 15:06

sun


1 Answers

Assuming that you use an HTTP proxy, there is a --http-proxy option for the gem app.

gem install --http-proxy http://corporate-proxy:1234 <gem_name>
like image 98
igorw Avatar answered Nov 15 '22 21:11

igorw