我最近从RVM转移到Rbenv,当试图执行rails时,我收到如下的
错误
Pauls-Air:~ $rails
rbenv: rails: command not found
The `rails' command exists in these Ruby versions:
2.1.2
在ruby版本中通过命令行安装gem后,您必须按照文档
here和
here中所述执行rbenv rehash
例如:
$rbenv install 2.2.0
$gem install bundler
$rbenv rehash
$gem install rails
$rbenv rehash
原文链接:https://www.f2er.com/ruby/266255.html