error at new rails app creation

21 views
Skip to first unread message

Selvag Ruby

unread,
Jan 29, 2014, 4:44:29 AM1/29/14
to rubyonra...@googlegroups.com
In cmd prompt, I just tried to new rails app using,
~/documents>rails new app_name
It throws an error as,
Gem::InstallError: The 'json' native gem requires installed build tools.

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

Colin Law

unread,
Jan 29, 2014, 5:01:35 AM1/29/14
to rubyonra...@googlegroups.com
On 29 January 2014 09:44, Selvag Ruby <li...@ruby-forum.com> wrote:
> In cmd prompt, I just tried to new rails app using,
> ~/documents>rails new app_name
> It throws an error as,
> Gem::InstallError: The 'json' native gem requires installed build tools.

You have some build tools missing. Without knowing which OS you are
using and how you installed ruby and rails it is difficult to say
more. I recommend using rvm for installing ruby and rails. rbenv may
be a good alternative but I have no experience of that.

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/a1af13a78eb723f47c581e3f78e53cbe%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Selvag Ruby

unread,
Jan 29, 2014, 5:57:28 AM1/29/14
to rubyonra...@googlegroups.com
I've Windows7, Ruby 1.9.3 and Rails 3.2.6

Colin Law

unread,
Jan 29, 2014, 6:19:16 AM1/29/14
to rubyonra...@googlegroups.com
On 29 January 2014 10:57, Selvag Ruby <li...@ruby-forum.com> wrote:

Please quote the previous message and insert your reply inline at
appropriate points in previous message so it is easier to follow the
thread. This is a mailing list not a forum (though you may be
accessing it via a forum-like interface.

> I've Windows7, Ruby 1.9.3 and Rails 3.2.6

In that case my advice is don't bother. Switch to a linux
distribution such as Ubuntu, or use a Mac. In the long run life will
be much simpler. You can dual boot ubuntu or use a VM. However I
believe some have had success developing in windows so someone else
may be able to help.

Colin
Reply all
Reply to author
Forward
0 new messages