Rbenv: Issue with - rbenv: rails: command not found

Created on 4 Aug 2017  路  3Comments  路  Source: rbenv/rbenv

Hi all,

I tried to update Ruby 2.4.1 and Rails 5.1.3 but the terminal showed the following message:

Nguyens-MacBook-Pro:~ nhp$ rails --version
rbenv: rails: command not found

The `rails' command exists in these Ruby versions:
2.2.1

Could you please explain what is this and how to fix it?

Thanks,

Most helpful comment

Hi, have you tried to install rails gem? gem install rails

All 3 comments

Hi, have you tried to install rails gem? gem install rails

Hi @nguyenhuuphuc83 , have you tried to rbenv rehash after installing rails gem?

The above comments should have helped to solve the issue. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChrisBrettCA picture ChrisBrettCA  路  4Comments

kaikuchn picture kaikuchn  路  5Comments

bradrydzewski picture bradrydzewski  路  4Comments

mhinz picture mhinz  路  3Comments

codfather picture codfather  路  3Comments