Answer the question
In order to leave comments, you need to log in
How to solve ruby version error problem?
When installing for any cloned project, an error appears - "Your Ruby version is 2.1.2, but your Gemfile specified 2.2.2".
The command "rbenv local" gives - "2.2.2". Did "rbenv rehash", reinstalled bundler and rbenv, but didn't help. Most likely, the problem is in the file where the paths are written. But I don't know how to solve it.
Answer the question
In order to leave comments, you need to log in
I dare to recommend using:
https://rvm.io/
And there will be no problems.
ruby -v - "ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu]"
which ruby - "/usr/bin/ruby"
This means that rbenv is not working for you.
Where did you addeval "$(rbenv init - zsh)"
it during installation?
PS Whenwhich ruby
it shows something like/Users/helsus/.rbenv/shims/ruby
, then rbenv is working.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question