Problem with rails installation, even when running rails -v

ben sharman wrote in post #1070632:

Hi Steve,

Looks to me like you are defaulting to the system versions.

As you are using rvm did you follow these steps?

rvm install 1.9.3-p194

rvm use 1.9.3-p194 --default

Let me know if this works for you.


Hey Ben Sharman,

Thanks for replying. I tried everything and it didn't work. I also found that jumping across the forums, trying different solutions wasn't helping either. I realised after a while that I had a fundamental issue. My system was broken to the point where it would/couldn't be set up properly.


Because at some point I used Sudo to re-configure a vital Ruby/Rails directory when it wouldn't work first time. That was fatal. No matter what I tried I wasn't able to get back to where I'd been.

What solved it?

After weeks of trying variations on the normal set ups such as you suggest in your answer to get things working and also trying to check and re-check the chown status of various directories. In the end I backed up all my important data, made an Ubuntu 12.04 boot disc and re-installed the OS entirely again. Not using Sudo where I shouldn't meant my Ruby and rails installations when smoothly. There are pitfall though because when you get into trouble there it lots of information out there that can lead the unwary to use Sudo here and there on their Ruby or Rails installation but I found the hard way to steer completely away from using Sudo unless specifically told to by the person(s) who have developed the solution you want to work with. It's been a tough lesson, one I'm slightly embarrassed about in that I've had to re-build my system again from scratch but hopefully anyone reading this who's having the same trouble that seems to go on for a long time will ultimately know they have a tough decision ahead of them: Backup and start again. May not always make sense in every case but for me it worked. Steve.