Wednesday, December 5, 2012

Rails bundle install error



Installed RubyonRails in Windows (Windown 7) from http://railsinstaller.org/ 


After sucessful install when I run from DOS 

c:\rails_projects>rails new first_app
create  
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/images/rails.png
      create  app/assets/javascripts/application.js
      create  app/assets/stylesheets/application.css
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/mailers
      create  app/models
      create  app/views/layouts/application.html.erb
      create  app/mailers/.gitkeep
      create  app/models/.gitkeep
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      .
      .
      .
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
         run  bundle install

Could not reach rubygems repository https://rubygems.org/
Could not find gem 'jquery-rails (>= 0) x86-mingw32' in any of the gem sources
isted in your Gemfile.

Found 2 solutions:

#1 http://shakthydoss.com/rails-bundle-execution-problem-resolved/
Note :This did not work for me,I had set FF as my default browser

#2 Set HTTP_PROXY environment variable(It is documented in "gem help install") 
    The HTTP_PROXY syntax needs to be URI:
 
    SET HTTP_PROXY=http://username:password@proxyhere.com:8080/
 I  tested   with:
set HTTP_PROXY=www-proxy.us.companyname.com:80
It worked for me :)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.