如何通过代理安装 Rails



当我收到此错误时,我试图将Ruby on Rails安装到我的PC上:

gem install rails - ERROR: While executing gem (Net::HTTPServerException) 407 “Proxy Authentication Required” [on hold]

我试过了:

gem install --http-proxy http://{domain}%5C{username}:{password}@{proxy.address}:{port}/ rails

标题有错误

我也试过:

gem install -p http://pynewbie:mypassword@the-proxy-host.com:8888 rails 

并得到错误

ERROR: Could not find a valid gem 'rails' (>= 0), here is why: Unable to download data from https://rubygems.org/ - no such name(https://rubygems.org/specs.4.8.gz) 

最好使用代理链来代理命令中的所有请求:

proxychains gem install rails

安装后,您必须在~/.proxychains/proxychains.conf上创建配置文件

代理链 Github

最新更新