# Problems using the 'extensions' gem - can anyone help?

**URL:** <https://www.ruby-forum.com/t/problems-using-the-extensions-gem-can-anyone-help/183172>\
**Category:** Ruby\
**Created:** [February 9, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/problems-using-the-extensions-gem-can-anyone-help/183172 "2010-02-09T14:16:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![innes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@innes](https://www.ruby-forum.com/u/innes)\
**Post date:** [February 9, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/problems-using-the-extensions-gem-can-anyone-help/183172/1 "2010-02-09T14:16:00Z")

</div>

I’m running Ruby 1.9.1-p378 (RC2) on windows, installed from the  
[RubyInstaller.org](http://RubyInstaller.org) site.  
I’ve installed ‘extensions’ gem (“gem install -r extensions”).

When I run irb and try and “require 'extensions/all” I get the  
following error:

C:\Windows\System32\>irb  
irb(main):001:0\> require ‘rubygems’  
=\> false  
irb(main):002:0\> require ‘extensions/all’  
NameError: uninitialized constant VERSION  
[snip]

Some code in the extensions/\_base.rb is checking VERSION to determine  
if running on a new enough version of ruby. This constant isn’t  
defined (NB: RUBY\_VERSION is defined).

When I set VERSION = RUBY\_VERSION before require’ing ‘extensions/all’  
I get this error instead:

RuntimeError: Ruby/Extensions: internal error: was supposed to  
implement Array#select!, but it didn’t!  
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/extensions-0.6.0/lib/  
extensions/\_base.rb:113:in `implement’

Does anyone recognise this problem?

---

<div class="post-metadata">

**Author:** ![innes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@innes](https://www.ruby-forum.com/u/innes)\
**Post date:** [February 9, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/problems-using-the-extensions-gem-can-anyone-help/183172/2 "2010-02-09T14:38:14Z")

</div>

On Feb 9, 2:14 pm, innes [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> irb(main):002:0\> require ‘extensions/all’  
> RuntimeError: Ruby/Extensions: internal error: was supposed to  
> implement Array#select!, but it didn’t!  
> from C:/Ruby19/lib/ruby/gems/1.9.1/gems/extensions-0.6.0/lib/  
> extensions/\_base.rb:113:in `implement’
> 
> Does anyone recognise this problem?

REport this to the gem author:

[http://gemcutter.org/gems/extensions](http://gemcutter.org/gems/extensions)

Oh, there is no author in the gem… hmn:

[http://extensions.rubyforge.org/rdoc/index.html](http://extensions.rubyforge.org/rdoc/index.html)

“Gavin S.”

Ask him about it and proper support of Ruby 1.9.

There is also the backports gem:

[http://gemcutter.org/gems/backports](http://gemcutter.org/gems/backports)

---

<div class="post-metadata">

**Author:** ![innes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@innes](https://www.ruby-forum.com/u/innes)\
**Post date:** [February 9, 2010, 3:40pm UTC](https://www.ruby-forum.com/t/problems-using-the-extensions-gem-can-anyone-help/183172/3 "2010-02-09T15:40:52Z")

</div>

On Feb 9, 1:33 pm, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> REport this to the gem author:
> 
> There is also the backports gem:
> 
> [RubyGems.org | your community gem host](http://gemcutter.org/gems/backports)
> 
> –  
> Luis L.

Thanks Luis - I uninstalled and tried Ruby 1.8 from ‘ruby installer’  
instead, and it worked. I see from ([eigenclass.org](http://eigenclass.org/hiki.rb)?  
Changes+in+Ruby+1.9) that VERSION is deprecated so this is all a Ruby  
version issue.
