Installation Error

ruby setup.rb when i type this i am getting a error $ ruby setup.rb /usr/lib/ruby/2.2.0/rubygems.rb:8:in require': cannot load such file -- rbconfig (LoadError) from /usr/lib/ruby/2.2.0/rubygems.rb:8:in< top (required) >' from < internal:gem_prelude >:1:in require' from <internal:gem_prelude>:1:in< compiled > '

I am completely new to it. Somebody please help me.

I am using win 7

I have done many Windows 7 Ruby installations. I am guessing that you are working from old documentation. Where were you informed to run ruby setup.rb?

I am following Ruby on Rails 3 Tutorial LiveLessons Bundle by Michael Hartl's instructions.

So I installed Cygwin64 Terminal Downloaded rubygems-2.4.8 from official website Cd to rubygems-2.4.8 ls ---There i found setup.rb

$ ruby setup.rb /usr/lib/ruby/2.2.0/rubygems.rb:8:in require': cannot load such file -- rbconfig (LoadError) from /usr/lib/ruby/2.2.0/rubygems.rb:8:in< top (required) >' from < internal:gem_prelude >:1:in require' from <internal:gem_prelude>:1:in< compiled > '

This is it. Please help me out.

I’m no authority on ROR on cygwin66… Not making any promises…

Did a little research, and found this at: http://code.openhub.net/file?fid=_l-OijNPFX7fzeTZ7tG1bdwGj-U&cid=teq11amO2NQ&s=&fp=299059&mp&projSelected=true#L0

It’s setup.rb, obviously you can search your environment for setup.rb to trace the rbconfig error…

Seems that if rubygems are already loaded you will get a rbconfig error.

Thanks for the reply.

I tried echo $RUBYOPT....it returned empty

Then i followed instructions in https://rubygems.org/pages/download#formats

Download from above Unpack into a directory and cd there Install with: ruby setup.rb (you may need admin/root privilege)

But the same error persist. A friend of mine suggested rails installer. So i am gonna install that. Anyways thanks for your time.

You can also try railsintaller ( http://railsinstaller.org/en ). Back then when I had windows, I used that as far as I can remember.