I installed ruby gems from their website and installed rails using gem
I got a successful installed notification.
But when I tried to use rails command, it gave me command not found.
After I installed gems. I had to create a symbolic link otherwise gem
command wouldn’t work.
Anyone know how to get rails to work?
Debian and Ubuntu, at least, don’t include the paths for your gems,
nor create any symlink.
I think you don’t have many choices here, either you modify your path
or create symlinks for each installed gem that has executable files.
tar xvzf /home/colinl/downloads/rubygems-1.3.5.tgz
sudo ruby setup.rb
rm -rf rubygems-1.3.5
echo “making symlinks - not sure if this will always be necessary,
must be done if gem -v does not work”
sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem
sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby
sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc
sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri
sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb
But there is no file with rails-2.3.4 inside of the folder.
Gems, usually, are installed under /var/lib/gems/1.8/gems/
1 direcotry per gem, and inside each one of these directories, you’ll
have a bin directory where executable files are placed.
Just to be sure where it is, you can do:
$sudo locate rails | grep bin