Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with - rbenv: rails: command not found #1023

Closed
nguyenhuuphuc83 opened this issue Aug 4, 2017 · 3 comments
Closed

Issue with - rbenv: rails: command not found #1023

nguyenhuuphuc83 opened this issue Aug 4, 2017 · 3 comments

Comments

@nguyenhuuphuc83
Copy link

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,

@voloyev
Copy link

voloyev commented Aug 7, 2017

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

@ghost
Copy link

ghost commented Aug 24, 2017

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

@mislav
Copy link
Member

mislav commented Jun 4, 2018

The above comments should have helped to solve the issue. 👍

@mislav mislav closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants