rails is not recognized as an internal or external command

51 views
Skip to first unread message

Richard Beardwood

unread,
Sep 1, 2015, 3:33:52 PM9/1/15
to rubyonra...@googlegroups.com
I have just installed Ruby on Rails on Windows 8 and tested it including
checking the version. This all works fine however, when I try to set up
a new project using rails I get "rails is not recognized as an internal
or external command"

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Sep 1, 2015, 3:42:56 PM9/1/15
to Ruby on Rails: Talk
On 1 September 2015 at 20:33, Richard Beardwood <li...@ruby-forum.com> wrote:
> I have just installed Ruby on Rails on Windows 8 and tested it including
> checking the version. This all works fine however, when I try to set up
> a new project using rails I get "rails is not recognized as an internal
> or external command"

Do you mean that
rails -v
works but
rails new project_name
does not?

What does rails -v show?

Colin

>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/016e9a5abfc9a1a7abc804ac090b9bd8%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

Richard Beardwood

unread,
Sep 1, 2015, 3:48:51 PM9/1/15
to rubyonra...@googlegroups.com
Yes that is correct.
rails -v shows:
ruby 2.1.6p336 <2015-04-13 revision 50298> [i386-mingw32]

Colin Law

unread,
Sep 1, 2015, 3:53:15 PM9/1/15
to Ruby on Rails: Talk
On 1 September 2015 at 20:48, Richard Beardwood <li...@ruby-forum.com> wrote:
> Yes that is correct.
> rails -v shows:
> ruby 2.1.6p336 <2015-04-13 revision 50298> [i386-mingw32]

I rather suspect that is the result of ruby -v not rails -v. So ruby
is installed but not rails.

Please remember to quote the previous message so that it easier to
follow the thread, this is a mailing list not a forum (though you may
be accessing it via a forum-like interface).

Colin

>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d6c858607645004b29994d832e1d14e1%40ruby-forum.com.

James Jelinek

unread,
Sep 1, 2015, 4:23:43 PM9/1/15
to rubyonra...@googlegroups.com

On Sep 1, 2015, at 2:52 PM, Colin Law <cla...@gmail.com> wrote:

I rather suspect that is the result of ruby -v not rails -v.  So ruby
is installed but not rails.

Please remember to quote the previous message so that it easier to
follow the thread, this is a mailing list not a forum (though you may
be accessing it via a forum-like interface).

Colin

I agree.  I think the OP is calling ‘ruby -v’ and needs to install the rails gem.  I’ve done this before on a fresh system.  Should be able to do a “gem install rails” and move on from there.

-James

Richard Beardwood

unread,
Sep 1, 2015, 7:59:48 PM9/1/15
to rubyonra...@googlegroups.com
>I agree. I think the OP is calling ‘ruby -v’ and needs to install the
>rails gem. I’ve done this before on a fresh system. Should be able to
>do a “gem install rails” and move on from there.


Thanks. You are right. I am new to this and just getting started
so thanks for the help

Colin Law

unread,
Sep 2, 2015, 3:12:23 AM9/2/15
to Ruby on Rails: Talk
On 2 September 2015 at 00:58, Richard Beardwood <li...@ruby-forum.com> wrote:
>>I agree. I think the OP is calling ‘ruby -v’ and needs to install the
>>rails gem. I’ve done this before on a fresh system. Should be able to
>>do a “gem install rails” and move on from there.
>
>
> Thanks. You are right. I am new to this and just getting started
> so thanks for the help

One further point, Rails development can be problematic on Windows.
Some have had success I believe but many have difficulties and since
most developers use Linux (eg Ubuntu) or Mac for development it can be
difficult to get help. I always advise Win users to either set their
machine up to dual boot Ubuntu and Win or to run Ubuntu in a Virtual
Machine such as VMWare or VirtualBox. Then to install Ruby and Rails
using rvm (others prefer rbenv).

Colin

Sebastian Calvo

unread,
Sep 2, 2015, 8:32:39 AM9/2/15
to Ruby on Rails: Talk
Hi,

I'll recommend you http://railsinstaller.org for windows, it works like a charm.

Regards
  Sebastian Calvo
Reply all
Reply to author
Forward
0 new messages