Reputation:
I'm having trouble installing the bundler gem from behind my proxy server.
$ gem install bundler --http-proxy http://my.proxy/proxy.pac:80
ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (http://rubygems.org/latest_specs.4.8.gz)
$ rails -v
Rails 4.1.1
$ ruby --version
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
Anyone have suggestions on how to resolve these errors?
Upvotes: 3
Views: 13919
Reputation: 1982
From gem help install
documentation:
sudo gem install bundler -p http://myawesome.proxy.com:1234
Upvotes: 4
Reputation: 313
Try this:
sudo HTTP_PROXY="http://10.3.100.207:8080" gem install bundler
Replace "10.3.100.207" with your host and "8080" with your "port value"
Or try this:
sudo HTTP_PROXY="http://10.3.100.207:8080" or sudo export HTTP_PROXY="http://10.3.100.207:8080"
Also do with https and HTTPS as I faced problem once due to this.
Upvotes: 2
Reputation: 9482
I don't think gem supports evaluating a .pac
file. You need to give it the correct proxy configuration directly.
Upvotes: 0