0

I'm trying to install rails on windows7. Rails not getting installed gem sources --add http://rubygems.org commands throws error like Error fetching http://rubygems.org timed out http://API.rubygems.org/specs.4.8.gz

Can anyone help me resolve this.

Siddu h
  • 2,243
  • 5
  • 13
  • 23
  • Are you sure with what you wrote above? `gem sources --add http://rubygdms.org` or just typo? If it's typo correct it. – oj5th Jul 10 '18 at 05:27
  • It's just typo error – Siddu h Jul 10 '18 at 06:22
  • Possible duplicate of [gem install cannot download from rubygems.org](https://stackoverflow.com/questions/27260919/gem-install-cannot-download-from-rubygems-org) – jemonsanto Jul 10 '18 at 07:05

2 Answers2

0

This could be solved by updating your rubygems to latest version.

gem update --system

Abhilash Reddy
  • 1,433
  • 1
  • 11
  • 23
  • I'm creating new rails app..rails itself not getting installed..is there any network issue? – Siddu h Jul 10 '18 at 06:50
  • @Sidduh do mention the steps you are using to setup new application – Bijendra Jul 10 '18 at 07:24
  • I'm setting up rails application in windows 7 and steps followed are. 1. Installed latest Ruby 2.5 2.edit .gemrc and added :sources: ["http://rubygems.org"]. 3.gem install rails – Siddu h Jul 10 '18 at 07:59
  • Rails application is not setup yet..how can I edit gemfile .. gem install rails command throwing error – Siddu h Jul 10 '18 at 09:53
0

Finally I resolved this error by adding http://rubygejs.org/ to .gemrc.

Siddu h
  • 2,243
  • 5
  • 13
  • 23