# Can't get gem to work

**URL:** <https://www.ruby-forum.com/t/cant-get-gem-to-work/118458>\
**Category:** Rails\
**Created:** [October 27, 2007, 4:59am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458 "2007-10-27T04:59:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 4:59am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/1 "2007-10-27T04:59:34Z")

</div>

when I try to do

gem install rails

or gem install anything I get the following error:

ERROR: While executing gem … (TypeError)  
can’t instantiate uninitialized class

Anyone else seeing this and have any ideas?

- thanks  
Johnny

---

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 5:42am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/2 "2007-10-27T05:42:46Z")

</div>

I am having the same problem, just installed rubygems on Ubuntu Server  
7.10 and am unable to install any gems, investigating error further.

---

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 5:51am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/3 "2007-10-27T05:51:32Z")

</div>

I’ve tried this on several different of my servers and they are all  
producing this error now so perhaps  
there something problematic with [gems.rubyforge.org](http://gems.rubyforge.org)?

---

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 6:05am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/4 "2007-10-27T06:05:33Z")

</div>

I can confirm that this is happening to me on OS X 10.5

Just installed, so I’m guessing it’s a problem upstream.

---

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 6:17am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/5 "2007-10-27T06:17:48Z")

</div>

it seems to be working for me as well now though I’ve changed  
nothing at my end, so I’m guessing it was indeed a problem upstream.

---

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 6:09am UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/6 "2007-10-27T06:09:38Z")

</div>

Seems to be working now, I had to install libruby1.8-extras before it  
started working on my ubuntu install.

---

<div class="post-metadata">

**Author:** ![alea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@alea](https://www.ruby-forum.com/u/alea)\
**Post date:** [October 27, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458/7 "2007-10-27T16:12:15Z")

</div>

On 10/27/07, Johnny P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> it seems to be working for me as well now though I’ve changed  
> nothing at my end, so I’m guessing it was indeed a problem upstream.

In a parallel conversation on the ruby-gems mailing list, it’s been  
discussed.

There’s a new beta version of rubygems out there, and some folks had  
mistakenly uploaded some gems to the server with the beta version  
which wasn’t ready. This led to the same error, so I suspect that  
this was the problem.

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)
