|
Installing rubygems in ubuntu |
|
|
Written by Nirbhab Barat
|
|
Thursday, 30 July 2009 10:37 |
sudo apt-get install rubygems above command installs the ruby gems to your linux machine. But before you move ahead with the installation procedure, the ruby gems work properly when you add the gems installation path to the environment - if you want to set a global path you have to do it in
/etc/environment sudo gedit /etc/environment and add /var/lib/gems/1.8/bin to the path - if you want to set the path any time you open a console , as a setting only for you
sudo gedit ~/.bashrc and add /var/lib/gems/1.8/bin to the path - if you want to add it to current session, but this path will get removed after a restart.
export PATH=/var/lib/gems/1.8/bin:$PATH
|
|
Last Updated on Thursday, 30 July 2009 11:24 |