我正在使用 ubuntu 12.04。我正在尝试运行
bundle install
在我研究所的代理网络后面。我已经正确设置了 apt.conf 文件,并且从终端下载的所有其他文件都工作正常。我将以下内容添加到 ~/.bashrc
export HTTP_PROXY=http://user:password@proxy_url:port
alias curl="curl -x http://proxy_url:port/ -U user:password"
alias rvm="rvm --proxy http://user:password@proxy_url:port"
我在我的环境文件中添加了以下内容:
http_proxy="http://user:password@proxy_url:port/"
https_proxy="https://user:password@proxy_url:port/"
ftp_proxy="ftp://user:password@proxy_url:port/"
socks_proxy="socks://user:password@proxy_url:port/"
我还在 ~/.gemrc 中添加了以下内容:
http-proxy:http://user:password@proxy_url:port
当我在终端上使用或不使用 sudo 运行捆绑程序时进行所有这些更改后,我得到了一些 html 页面的源代码。html 页面的代码后面是以下行:
Net::HTTPProxyAuthenticationRequired:
请告诉我如何使 rails 在代理后面运行。