This help site has been deprecated. Please send your requests to

why ruby gem with C extension require a unique ruby version?

Patrício dos Santos's Avatar

Patrício dos Santos

12 Jan, 2015 09:46 AM


I am creating a ruby gem that use a C extension. What I see is that this gem requires a specific ruby version to run. The one that was used to buld the gem and generate a Makefile.

How can I make my gem to run with other ruby versions too?

My code:


  1. Support Staff 1 Posted by Eric Hodel on 12 Jan, 2015 10:10 PM

    Eric Hodel's Avatar

    Don't check in your Makefile or anything generated by it (whirlpool.bundle). These get generated at install time by RubyGems. See the capp gem for an example.

    You probably want to use rake-compiler as it makes developing gems with C extensions much easier. This is described in the guide for gems with extensions

  2. Eric Hodel closed this discussion on 12 Jan, 2015 10:10 PM.

Discussions are closed to public comments.
If you need help with please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac