G
G
GaserV2017-02-23 01:08:46
Ruby on Rails
GaserV, 2017-02-23 01:08:46

Why is RoR not installed?

Goodnight! Can you please tell me why the rail is not installed?) It says Error installing rails: activesupport requires Ruby version >= 2.2.2. I have ruby ​​installed 2.0 How to upgrade? (OS X)
I wrote:
ruby ​​-e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install... "
rbenv install 2.4.0
Then I wrote ruby -v and for some reason it gave me 2.0, although in theory it should be 2.4.0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlelxSSS, 2017-02-23
@AlelxSSS

rbenv install 2.4.0
rbenv global 2.4.0
ruby ​​-v #test ruby ​​changing

O
Oleg Kulakov, 2017-03-14
@Morphine43

I advise you to look at RVM: rvm.io

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question