B
B
Bogdan2017-05-12 10:58:01
Ruby on Rails
Bogdan, 2017-05-12 10:58:01

Installing Rails 5.1 on Ruby 2.4.1 on Windows 10?

Hello! Downloaded and installed ruby ​​2.4.1p111 (2017-03-22 revision 58053) [x64-mi... , while installing Rails
gem install rails --version=5.1.0
Gives an error

ERROR:  Error installing rails:
        nokogiri requires Ruby version < 2.4, >= 2.1.0.

Tell me how to make them friends? Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Chronic 86, 2017-05-12
@chronic86

Spit and put Linux. Even if you run then you will get constant errors.

S
Semyon Pyatnitsky, 2017-05-13
@snowsem

Have you tried reading the bundler error? nokogiri requires Ruby version < 2.4, >= 2.1.0. - nokogiri works with ruby ​​versions less than 2.4 but greater than 2.1 including 2.1.
Version 2.4 is not yet supported.
Install Ruby version 2.3.3 and DevKit. The latter is needed to avoid conflicts when installing gems and using them.
Rails 5 requires Ruby 2.2.2 or newer. - 5 rail works with version 2.2
Tested on version 2.3.0 OSX and on Windows 1057bbe8fecc114f928eec315b1944069c.png

M
Marat Amerov, 2017-05-14
@amerov

Try WSL https://gorails.com/setup/windows/10

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question