Mac上位于防火墙后面的Ruby gem安装问题 [英] Ruby gem installation problem on Mac which is behind firewall

查看:87
本文介绍了Mac上位于防火墙后面的Ruby gem安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请为我的问题提供解决方案,
1)如何在Mac OS X 10.5.1上安装ruby gems。

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.

问候,
Sun

Regards, Sun

推荐答案

假设您使用HTTP代理,对于 gem 应用程序,c $ c> - http-proxy 选项。

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>

这篇关于Mac上位于防火墙后面的Ruby gem安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆