[Rubygems-developers] Trouble installing gems through firewall

Tom Ayerst twa at post.com
Tue Jan 4 16:03:42 EST 2005


Hi, I posted this to the rubygems help forum but looking at the amount 
of traffic there I thought I would post it here too.  Sorry if its the 
wrong place...

I am trying to install gems from behind a firewall.

I am using the one-click ruby 1.8.2 final installation on Windows XP

I am getting:

C:\Dev\ruby_stuff>gem install --debug -p incache rails

C:\Dev\ruby_stuff>"c:\dev\ruby\bin\ruby.exe" "c:\dev\ruby\bin\gem" 
install --debug -p incache rails
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
Exception `NoMethodError' at 
c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined 
method `proxy_open' for #<URI::Generic:0x1681f80 URL:incache>

Exception `NoMethodError' at 
c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined 
method `proxy_open' for #<URI::Generic:0x1681770 URL:incache>

ERROR: While executing gem ... (NoMethodError)
undefined method `proxy_open' for #<URI::Generic:0x1681770 URL:incache>

C:\Dev\ruby_stuff>gem update --debug -p incache

C:\Dev\ruby_stuff>"c:\dev\ruby\bin\ruby.exe" "c:\dev\ruby\bin\gem" 
update --debug -p incache
Upgrading installed gems...
Updating Gem source index for: http://gems.rubyforge.org
Exception `NoMethodError' at 
c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined 
method `proxy_open' for #<URI::Generic:0x16793f4 URL:incache>

Exception `NoMethodError' at 
c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined 
method `proxy_open' for #<URI::Generic:0x1678bfc URL:incache>

ERROR: While executing gem ... (NoMethodError)
undefined method `proxy_open' for #<URI::Generic:0x1678bfc URL:incache>

C:\Dev\ruby_stuff>

I downloaded rubygems 0.8.4 and used:

gem install rubygems-update-0.8.4.gem <http://rubyforge.org/frs/download.php/2413/rubygems-update-0.8.4.gem> (ah, probably should have been gem update...) 
but when I type gem -v it still comes up 0.8.3.

As usal I am probably doing something dumb but any pointers would be 
appreciated.

thanks

Tom


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/2004



More information about the Rubygems-developers mailing list