I just switched from Heroku to Amazon Web Services. I used to run all Rails command line commands using my Ruby command line (from my Windows PC). However, after I logged into my Amazon Linux EC2 instance and then went into my application directory, I get this error:
/usr/bin/rails:9:in `require': no such file to load
from /usr/bin/rails:9
when I try to run any commands, for example rails console.
I reviewed this question , but it doesn’t look like several Ruby libraries are applied to me because
which -a ruby
only displays one location:
/usr/bin/ruby
Also, this question did not seem to help, as did I. When I tried to enter text
rvm use 1.9.3
I get this message:
-bash: rvm: command not found
Linux, . !