Santhosh
Santhosh

Reputation: 29174

-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?

Upvotes: 6

Views: 21860

Answers (3)

Helio Albano
Helio Albano

Reputation: 917

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

Upvotes: 3

Swati Sucharita
Swati Sucharita

Reputation: 64

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

Upvotes: 0

matkins
matkins

Reputation: 1991

As Mattherick suggests, try bundle exec rails c

Upvotes: 14

Related Questions