Rolling with Ruby on Rails
Subject:   difficulty installing
Date:   2005-01-26 10:41:07
From:   Challman
I'm behind a corporate firewall and proxy (with authentication). I can't get the "gem install rails --remote" to establish a connection. I've tried pointing local but it keeps looking to the 'net. I downloaded and ran install.rb for actionmailer, actionpack, activerecord and rake. I then tried "gem install rails" but it failed again. I then did a --force and it appeared to install:

C:\rails>gem install rails.gem --force
Attempting local installation of 'rails.gem'
Successfully installed rails, version 0.9.5
Installing RDoc documentation for rails-0.9.5...
WARNING: Generating RDoc on .gem that may not have RDoc.

lib/rails_generator.rb:34:46: Skipping require of dynamic string: "#{path}/#{nam

However, I can't execute "rails cookbook". Here is what I get:

C:\rails>rails cookbook
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:131:in `activate': (Gem::LoadError)
Could not find RubyGem rake (>= 0.4.15)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:150:in `activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `each'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:34:in `require_gem'
from c:/ruby/bin/rails:18

I've googled and searched and read but I still can't find something that helps. Any ideas?

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • difficulty installing
    2005-02-02 02:49:27  Chilli [View]

    try setting the enviroment variable HTTP_PROXY this worked for me.

    Windows: set HTTP_PROXY="http://proxyurl:8080"
    Linux/Bash: export HTTP_PROXY="http://proxyurl:8080"
  • difficulty installing
    2005-01-26 11:02:01  Challman [View]

    Wow! I finally got this working. I had to

    1. download and run setup.rb fro rubygems
    2. download, run install.rb and gem install actionmailer.gem
    3. download, run install.rb and gem install actionpack.gem
    4. download, run install.rb and gem install activerecord.gem
    5. download, run install.rb and gem install rake.gem

    Then I was able to get "gem install rails" to work properly. I'm now able to run "rails cookbook".

    Anyone have any idea why this was so difficult for my besides the fact that I'm on a M$ server? :)
    • Curt Hibbs photo difficulty installing
      2005-01-26 11:20:23  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

      It shouldn't be that difficult (although, congrats on finding a workaround!).

      Basically, you downloaded the "gems" (ruby packages, similar to jar files) manually and then installed them. This bypassed the need to get through your proxy server.
  • Curt Hibbs photo difficulty installing
    2005-01-26 10:57:36  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    For non-authenticating proxys you can do this:

    gem install rails -p http://<proxy-url>

    I don't know how to do authenticating proxy's, but I've got a query in with the RubyGems developers and as soon as I know, I will post it here.
    • difficulty installing
      2005-11-14 09:38:02  elaveriao [View]

      With an authenticating proxy, I have used

      gem install rails -p http://user@pass:proxy-url

      and it has worked

      • difficulty installing
        2005-12-09 06:13:57  Plog [View]

        If you'r like me, behind a firewall/auth. proxy/etc... You can use HTTrack ( to get all gems at once. You'll be then able to install everything offline

        On Linux :

        # httrack -O /MygemsDir -P

        Patrick LOGÉ