Question

I am trying to install RoR on my ubuntu 12.04 (32bit) i am following the instructions found on this link : https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm ; all goes well i even create a project run bundle install and after that i was able to startup using rails server . The problem is when i turnoff my machine and reboot and cd into the same directory and issue the command rails or bundle the ubuntu can't find them and asks me to install them using apt!!! what is happening ?

Was it helpful?

Solution

You are using rvm. You probably didn't set the Ruby env used by rails as the default.

Run:

rvm list

This will display the available rubies on your machine (under rvm control).

Run:

rvm use <ruby used by rails>

That should load your rails environment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top