简体   繁体   中英

-bash: rails: command not found

I have installed RVM and and Ruby 1.9.3 . But when I do rails c , I get this error

-bash: rails: command not found

I had done bundle install from my Rails app, and it was successful. But when i do gem list , I get this

*** 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文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM