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

--
Posted via http://www.ruby-forum.com/.

Have you tried using rvm to manage your rubies?

http://beginrescueend.com/

···

On Aug 29, 2011, at 18:06, "amir e." <aef1370@gmail.com> wrote:

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

--
Posted via http://www.ruby-forum.com/\.

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

···

--
Posted via http://www.ruby-forum.com/.

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

- Lucas

···

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

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
************************

hi,

u can download the latest version from Download RubyGems | RubyGems.org | your community gem host
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 Nussbaum <lucas@lucas-nussbaum.net>wrote:

On 30/08/11 at 07:06 +0900, amir e. wrote:
> 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
> ************************

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

- Lucas

--
Best Regards,

Larry Lv
@ Baidu NLP