Hi
When I decided to install gem in ubuntu yesterday ( with this command :
sudo gem install algorithms ) , bash gave me an error. How can I install
gem in ubuntu like that installing on windows ?
The error is Load Error , Ruby version is 1.9.2p290 , Rubygems version
is 1.8.10
eg.: download the tgz file, which is rubygems-1.8.7.tgz
$ wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.7.tgz
unpack it into a dir, and cd there
$ tar xvf rubygems-1.8.7.tgz
$ cd rubygems-1.8.7
then, install it…
$ sudo ruby setup.rb
or, u can just try this
$ sudo apt-get install rubygems1.9.1
and then use “sudo gem update --system” to upgrade to the latest version