I have installed ruby 1.9.3 and now when I want to start "rails server" on a project I get this error: /usr/bin/env: ruby1.8: No such file or directory
I saw in some posts that I have to change PATH
of something but I don't know how to do that.
I am new in linux.
echo $PATH:
~/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/mordehai/.rvm/bin:/home/mordehai/.rvm/bin
I installed few times with "sudo apt-get install ruby1.9.3, and with rvm
I have been facing this kind of problem too, so this is how i fixed it. It might not be permanent solution but here it is: every time before you start your server change the path to the following being in your project directory:
then you can run your server
i am sure you are good to go
you are missing basics of RVM:
I had this issue on an older Debian install that's gone through at least one
apt-get dist-upgrade
.Looking around for the culprit it quickly became apparent that there was a bunch of cruft left over after an upgrade of the system ruby.
Too many references to fix & I don't want to maintain all these files, so It seemed easier to make ruby1.8 available to any scripts that were expecting it.
Fixing was as easy as running