M
M
Murat Atila2015-01-26 11:21:55
Ruby on Rails
Murat Atila, 2015-01-26 11:21:55

Ruby on Rails, error while generating project/installing extensions, json, how to fix?

Before writing here, I pretty much googled, but it did not bring any results.
Windows 7 x64
The problem occurs when generating a project, it cannot install plugins (not sure if I understand it correctly?).
Now I have

ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [x64-mingw32]

sqlite3 --version
3.8.8.1 

rails -v
DL is deprecated, please use Fiddle
Rails 4.2.0

And here at the stage of creating the project, the main problem arises, after the
rails new blog
command , the project is generated, it successfully goes to bundle install
, after which I get such an error.
run bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/.....
Resolving dependencies....
Using rake 10.4.2
Using i18n 0.7.0
Gem::Ext:BuildError: ERROR: Failed to build gem native extension.
    C:/Ruby21-x64/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR=" clean
"make" не является внутренней или внешней 
командой, исполняемой программой или пакетным файлом.

make "DESTDIR="
"make" не является внутренней или внешней 
командой, исполняемой программой или пакетным файлом.

make failed, exit code 1

Gem files will remain installed in C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/json1.8.2 for inspection.
Results logged to C:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/json-1.8.2/gem_make.out
An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that 'gem install json -v '1.8.2' ' succeeds before bundling.

When trying to manually install gem install json , the same error occurs.
Thanks for reading!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene Burmakin, 2015-01-26
@TheExplay

TL;DR: Your main mistake in using Windows. Well, Ruby is not intended for such perversions, put yourself at least on Ubuntu virtual machine and develop for your own pleasure. The `make` command is intended for compilation, as far as I remember, but in Windows it is stupidly absent. Teams.

B
Boris Penkovsky, 2015-01-27
@Able1991

In my office with rails, everyone works under Windows, everything was installed through railsinstaller.org/en - the flight is normal, there are only problems with mysql2, there you need to throw the dll somewhere

E
epolyak, 2015-12-14
@epolyak

https://github.com/oneclick/rubyinstaller/wiki/Dev...
Should solve your problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question