When trying to run ‘rails s’ I get the following error?
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:334:in `bin_path’: can’t find executable rails for rails-3.2.6 (Gem::Exception)
from /usr/bin/rails:19
I am using RVM and I am sure I installed it in the incorrect location.
If you install via RVM, then, that message will never appear, because it’s the message emitted by the ruby which come with OS X, which probably invoked by /usr/bin/rails.
I guess you installed RVM and ruby, but not rails via RVM. Assuming you’re using 1.9.3-p194, you must:
then, run
now, run
which rails, It should show the rails’s path somehere beneath~/.rvm. in my case:If it is not, check your path variable. You may also re-login to set
PATHcorrectly, if you just installed ruby and RVM.