Building Virtual Machines (VM) using Vagrant this week. Unfortunately the Ubuntu Natty does not add Ruby Gems directory to system path variable. Using Ruby Gems on command line is tedious if you have to type the full path prefix everytime. For example I have to type /var/lib/gems/1.8/bin/vagrant .
Instead I used the solution suggested in libgems-ruby bug #145267 .
sudo echo "PATH=/var/lib/gems/1.8/bin:$PATH" > /etc/profile.d/rubygems1.8.sh
Perhaps someone could add this to Vagrant Ubuntu installation documentation.