[英]-bash: rails: command not found
I have installed RVM
and and Ruby 1.9.3
. 我已经安装了
RVM
和Ruby 1.9.3
。 But when I do rails c
, I get this error 但是当我使用
rails c
,出现此错误
-bash: rails: command not found
I had done bundle install
from my Rails
app, and it was successful. 我已经从我的
Rails
应用程序完成了bundle install
,并且bundle install
成功。 But when i do gem list
, I get this 但是当我做
gem list
,我得到了
*** LOCAL GEMS ***
bundler (1.3.5)
rubygems-update (2.1.3)
rvm (1.11.3.8)
What could be wrong? 可能有什么不对?
正如Mattherick所建议的那样,请尝试bundle exec rails c
您可以尝试在终端配置文件中启用选项“将命令作为登录外壳程序运行”。
您可以在运行捆绑软件安装或运行捆绑软件更新之前删除gemfile.lock文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.