Rubygems instalation on ubuntu

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


thanks

Have you tried using rvm to manage your rubies?

http://beginrescueend.com/

On 30/08/11 at 07:06 +0900, amir e. wrote:


A “Load Error” is unlikely to come from bash. Post the full log?

  • Lucas

the 1.9.1 ruby has extra gem program named gem1.9.1 … try this

hi,

u can download the latest version from
http://rubygems.org/pages/download
and then, install it manually.

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

On Tue, Aug 30, 2011 at 2:40 PM, Lucas N.
[email protected]wrote:

is 1.8.10


A “Load Error” is unlikely to come from bash. Post the full log?

  • Lucas


Best Regards,

Larry Lv
@ Baidu NLP