Answer the question
In order to leave comments, you need to log in
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
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.
Answer the question
In order to leave comments, you need to log in
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.
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question