error when installing Rails
I have just created a new install of Ubuntu 8.10, and have proceeded to install all of the necessary packages for Ruby on Rails. I installed ruby, gems, and rails, but when i run rails -v, i get the following error:
root@li41-22:~# rails -v
-bash: rails: command not found
any guidance would be greatly appreciated
Jason
3 Replies
If you installed via RubyGems, it's probably in a directory like
/var/lib/gems/1.8/bin
sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby
sudo ln -s /usr/bin/ri1.8 /usr/bin/ri
sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc
sudo ln -s /usr/bin/irb1.8 /usr/bin/irb
edit: ops i didin't see this post was this old. Maybe this will be usefull for future generation