# Gem trouble

**URL:** <https://www.ruby-forum.com/t/gem-trouble/122589>\
**Category:** Ruby\
**Created:** [December 9, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/gem-trouble/122589 "2007-12-09T22:46:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjohn\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Post date:** [December 9, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/gem-trouble/122589/1 "2007-12-09T22:46:30Z")

</div>

I’ve been trying to use gems to instal rucola, and things aren’t  
going too well.

I’m using os x 10.4, and Ruby 1.8.2 on a power PC machine. My gem  
version is 0.9.5

I was getting this segmentation fault:

> /usr/lib/ruby/site\_ruby/1.8/rubygems/package.rb:620: [BUG]  
> Segmentation fault  
> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]

I checked the line mentioned, and found this:

> ```
> # we discovered errors occurred with versions as late as  
> # commented out while we evaluate this patch.
> entry.read(10) # skip the gzip header
> zis = Zlib::Inflate.new(-Zlib::MAX_WBITS)
> is = StringIO.new(zis.inflate(entry.read))
> # zis = Zlib::GzipReader.new entry
> # dis = zis.read
> # is = StringIO.new(dis)
> ensure
> zis.finish if zis
> end
> 
> ```

So I swapped out the patch and reverted to the earlier version. This  
seems to have worked around the SEG fault, but now I’m getting this  
instead:

> ERROR: While executing gem … (TypeError)  
> cannot convert nil into Array

This is all the errors / diagnostic information I get with the -V  
(verbose) option.

Can anyone adviseon getting everything working smoothly again? My  
apologies if I have left out critical and obvious diagnostic  
material. I’ve just done a disk verify, and that’s also come up clean  
(not sure how thorough the Mac “Disk Utility” is).

Thanks very much,  
Benjohn

---

<div class="post-metadata">

**Author:** ![Benjohn\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Post date:** [December 10, 2007, 7:18am UTC](https://www.ruby-forum.com/t/gem-trouble/122589/2 "2007-12-10T07:18:05Z")

</div>

On 9 Dec 2007, at 21:45, Benjohn B. wrote:

> I’ve been trying to use gems to instal rucola, and things aren’t  
> going too well.  
> _snip_  
> Can anyone adviseon getting everything working smoothly again? My  
> apologies if I have left out critical and obvious diagnostic  
> material. I’ve just done a disk verify, and that’s also come up  
> clean (not sure how thorough the Mac “Disk Utility” is).

One useful thing - this seems to happen for other gems too:

> benjohn # sudo gem instal sqlite  
> Password:  
> Updating metadata for 9 gems from [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> …  
> complete  
> ERROR: While executing gem … (TypeError)  
> cannot convert nil into Array  
> benjohn #

or

> benjohn # sudo gem instal nitro -V  
> Installing gem facets-1.4.5  
> ERROR: While executing gem … (TypeError)  
> cannot convert nil into Array  
> benjohn #

Thanks,  
Benjohn

---

<div class="post-metadata">

**Author:** ![Benjohn\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Post date:** [December 12, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/gem-trouble/122589/3 "2007-12-12T18:36:06Z")

</div>

On Dec 9, 2007, at 13:45 PM, Benjohn B. wrote:

> This is all the errors / diagnostic information I get with the -V  
> (verbose) option.
> 
> Can anyone adviseon getting everything working smoothly again? My  
> apologies if I have left out critical and obvious diagnostic  
> material. I’ve just done a disk verify, and that’s also come up  
> clean (not sure how thorough the Mac “Disk Utility” is).

Try:

gem --debug install …

---

<div class="post-metadata">

**Author:** ![Benjohn\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Post date:** [December 12, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/gem-trouble/122589/4 "2007-12-12T20:49:23Z")

</div>

On 11 Dec 2007, at 00:47, Eric H. wrote:

> Try:
> 
> gem --debug install …

Thanks Eric!

I was going to try this when I got back from work, but work can wait  
a few more minutes, I’m sure 🙂

Here’s what it says:

> ERROR: While executing gem … (TypeError)  
> `satisfied_by?' /usr/lib/ruby/site_ruby/1.8/rubygems/ install_command.rb:65:in`execute’  
> /usr/lib/ruby/site\_ruby/1.8/rubygems/command.rb:136:in  
> `invoke' /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb: 104:in`process\_args’  
> /usr/lib/ruby/site\_ruby/1.8/rubygems/command\_manager.rb:  
> 74:in `run' /usr/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in`run’  
> /usr/bin/gem:22  
> benjohn #

So, some worrying looking stuff at the start that it gets past, and  
then perhaps no gem matches the version requirements that it’s got at  
a later point? I’ll dig deeper tonight if no one recognises this one  
and comes back with a suggestion.

Thanks again!

Cheers,  
Benjohn
