When I run:
rails new <app_name>

I get the following error:
Fetching source index for http://rubygems.org/
Could not reach rubygems repository http://rubygems.org/
Could not find gem 'turn (>= 0) x86-mingw32' in any of the gem sources
listed in your Gemfile.

I think the problem is that I'm behind a proxy. How can I get the
rails command to use a proxy?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Peter Vandenabeele at Jan 11, 2012 at 8:55 pm

    On Wed, Jan 11, 2012 at 4:27 PM, Josh J. wrote:

    When I run:
    rails new <app_name>

    I get the following error:
    Fetching source index for http://rubygems.org/
    Could not reach rubygems repository http://rubygems.org/
    Could not find gem 'turn (>= 0) x86-mingw32' in any of the gem sources
    listed in your Gemfile.

    I think the problem is that I'm behind a proxy. How can I get the
    rails command to use a proxy?
    Assuming you are on Windows, this is the first match that came up
    for Google, seems quite relevant:


    http://stackoverflow.com/questions/4418/how-do-i-update-ruby-gems-from-behind-a-proxy-isa-ntlm

    I think the more relevant keywords for a search are "ruby gems through a
    proxy" or
    "bundler through a proxy" (I mean, it would be the Gem class or bundler
    gem that are
    responsible for fetching the gems, If I understand correctly ...).

    E.g. complete outside of rails, you could have a directory with only a
    Gemfile in it

    source 'http://rubygems.org/'

    gem 'ansi'

    and run `bundle install` in that directory to debug your problem.

    HTH,

    Peter


    that
    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.

    --
    Peter Vandenabeele
    http://twitter.com/peter_v
    http://rails.vandenabeele.com
    gsm: +32-478-27.40.69
    e-mail: peter@vandenabeele.com

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 11, '12 at 8:41p
activeJan 11, '12 at 8:55p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Peter Vandenabeele: 1 post Josh J.: 1 post

People

Translate

site design / logo © 2021 Grokbase