开发者

Ruby gem installation problem on Mac which is behind firewall

开发者 https://www.devze.com 2023-01-05 02:35 出处:网络
Please provide me solution for the problem of开发者_Go百科, 1) How to install ruby gems on a Mac (OS X 10.5.1) which is behind a corporate firewall.

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

Regards, Sun


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>


On my Mac which has the default ruby installed on it. I use the script below and it worked:

sudo gem install <gem_name> -p http://corporate-proxy:1234
0

精彩评论

暂无评论...
验证码 换一张
取 消