The firewall I'm behind is running Microsoft ISA server in NTLM-only mode. Hash anyone have success getting their Ruby gems to install/update via Ruby SSPI gem or other method?
... or am I just being lazy?
Note: rubysspi-1.2.4 does not work.
This also works for "igem", part of the IronRuby project
This totally worked:
I am working behind a proxy and just installed SASS by downloading directly from http://rubygems.org.
I then ran
sudo gem install [path/to/downloaded/gem/file]
. I cannot say this will work for all gems, but it may help some people.For the Windows OS, I used Fiddler to work around the issue.
Run gem:
Create a .gemrc file (either in /etc/gemrc or ~/.gemrc or for example with chef gem in /opt/chef/embedded/etc/gemrc) containing:
Then you can
gem install
as usual.If you are having problems getting authenticated through your proxy, be sure to set the environment variables in exactly the format below:
The
user:password@
syntax doesn't seem to work and there are also some badly named environment variables floating around on Stack Overflow and various forum posts.Also be aware that it can take a while for your gems to start downloading. At first I thought it wasn't working but with a bit of patience they started downloading as expected.
If you want to use SOCKS5 proxy, you may try rubygems-socksproxy https://github.com/gussan/rubygems-socksproxy.
It works for me on OSX 10.9.3.