-bash: rails: command not found

徘徊边缘 提交于 2019-12-23 22:28:18

问题


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?


回答1:


As Mattherick suggests, try bundle exec rails c




回答2:


You can try enable the option "run command as a login shell" in your terminal profile.




回答3:


You may remove the gemfile.lock file before running bundle install Or run bundle update.



来源:https://stackoverflow.com/questions/18844045/bash-rails-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!