You install the necessary gems but when you try to run rails you get this:
# rails -vYou can see that the gem is installed:
The program 'rails' is currently not installed. You can install it by typing:
apt-get install rails
-bash: rails: command not found
# gem list railsSo where is it? Turns out you need to add this link to your PATH variable (in your .bashrc file for example):
*** LOCAL GEMS ***
rails (2.3.2, 2.2.2)
# export PATH=/var/lib/gems/1.8/bin:$PATHThat does the trick:
# rails -vYou will find mention of this on page 25 of the 3rd Edition of 'Agile Web Development with Rails' but it needs to be more widely known. Gotchas like this that just prevent you from doing anything with a piece of software are BAD NEWS - someone make it go away...
Rails 2.3.2
No comments:
Post a Comment