concept c extension in category ruby

appears as: C extensions
Ruby in Practice

This is an excerpt from Manning's book Ruby in Practice.

Installing gems with C extensions

RubyWMQ is Ruby code mixed with a native C library. There are other gems that mix Ruby code with C extensions, some of which we cover in this book: MySQL, Mongrel, Hpricot, and RMagick.

On Windows, these C libraries are installed as DLLs, but on other operating systems they download as source code and need to be compiled and linked on your machine. If you’re curious what C extensions look like, check out one of these gems’ ext/ directories. Typically gems that use C extensions include an extconf.rb file, which uses the mkmf library to generate the Makefile. The rest is handled by make and gcc.