user3663113
user3663113

Reputation: 11

Trying to "gem install rails" - but it does absolutely nothing?

I've never used or touched Ruby/Rails before. I'm installing it for the very first time. I'm using Windows 8.

I'm on Step 4 of InstallFest here:

http://installfest.railsbridge.org/installfest/windows?back=choose_your_operating_system

I've typed "gem install rails" and hit Enter into the Command Prompt with Ruby and Rails.

Nothing happens though. It stays at the following:

https://i.sstatic.net/17grK.png

I've waited for quite some time and it appears to just stay at the screen when I hit Enter. I've tried using variations like "gem install rails -V" and "gem install -V rails" and the same thing happens.

How do I solve this?

Upvotes: 0

Views: 1201

Answers (2)

user3663113
user3663113

Reputation: 11

So I managed to solve this myself.

Turns out my firewall was blocking the installation. So I changed my firewall settings.

But then there was another issue. I got the following error after hitting "gem install rails":

ERROR: Could not find a valid gem 'rails' (>= 0) in any repository

Did some Googling, and entered this "gem source -a http://rubygems.org/". Then I tried installing Rails again- and voila, it worked.

Upvotes: 1

neo
neo

Reputation: 4116

try gem install rails -v 4.1.8 if you want to specify the version, if not just run gem install rails

Disclaimer: I have never run rails on Windows.

Upvotes: 0

Related Questions