I'm guessing rails is installed just fine but the gem-folder is somehow not setup in your PATH. Do a search somewhat like this find / -name *rails* | grep bin and check if that yields any results; if so check if the path rails is located in is also in your PATH. (echo $PATH)