views:

97

answers:

3

I really need help with Rubygems (that's the package manager for ruby). Since I'm behind a proxy, I've given up all hope of it working automatically, so I had to download a lot of packages manually and install them for rails to install. Now, I'm getting an error message:

Rails requires RubyGems >= 1.3.2 (...)

Once again, I manually downloaded rubygems-1.3.2.gem and installed it, however, it still doesn't work and gem -v shows 1.3.1. Help. Also, I can assure it that unless gem has HTTP1.1 Auth Proxy support, there is no way it by itself will be able to contact its server...

A: 

Before running rubygems commands, you should try something like (for windows)

set http_proxy=user:password@ip:port

Or export for linux, I guess.

neutrino
Does that work on windows?
Aviral Dasgupta
at least for me, it worked :)
neutrino
Can the password be escaped?
Aviral Dasgupta
A: 

It seems that one can simply download the source tarballs, untar them and use setup.rb to install the update. More information on it here.

Aviral Dasgupta
A: 

I did this and was very pleased with the result (no problem!).

Trevoke