Hey,
I used rbenv to install the latest version of ruby. Then I use "gem
install rails -v 4.2.4" to add rails. I install a few other gems and
then setup the web app in question (in this case it's Redmine).
After I complete the install on my user that I'm using to host the
Redmine process I'm able to launch the server, access it and use
everything as normal.
However if I restart the server or even log out of the user I created
for hosting Redmine neither the ruby nor rails commands will work any
longer unless I reinstall the entire suite again. (I got rbenv to keep
working on restart though).
ruby
The program 'ruby' can be found in the following packages:
* ruby
* ruby1.8
Try: sudo apt-get install <selected package>
rails
The program 'rails' can be found in the following packages:
* ruby-railties-3.2
* ruby-railties-4.0
Try: sudo apt-get install <selected package>
I'm using Ubuntu 14.04 LTS and I used git clone to install rbenv and
then used rbenv to install ruby. I did all the installs on the user I
want to be hosting the app from.
The strange part is if I login to root I'm able to use ruby and rails
after restart as normal, but I shouldn't be hosting the web app on root
anyways.
I tried googling for the solution to this for quite a long time but none
of the pages I found helped to fix this.
What do you think the problem is?
--
Posted via
http://www.ruby-forum.com/.