# \[ help \] Ruby WM with C ext

**URL:** <https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936>\
**Category:** Ruby\
**Created:** [December 8, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936 "2009-12-08T12:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maoa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@maoa](https://www.ruby-forum.com/u/maoa)\
**Post date:** [December 8, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936/1 "2009-12-08T12:45:28Z")

</div>

Hello, thank you for reading my post. My question is, how do I go about  
creating a C extension with Ruby? The reason I ask is because I recently  
found a window manager source code,  
[http://paste.lisp.org/display/47144/raw](http://paste.lisp.org/display/47144/raw), but I could not figure out how  
to get it set up and installed.

I read around, and all I could find out was that I needed to create  
several files called extconf.rb & .c. Then run the extconf.rb and  
build the extension with make. But I am still confused, do I need to  
actually make some sort of plugin with the .c in order to have it  
run the primary ruby source?

Any help would be much appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![maoa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@maoa](https://www.ruby-forum.com/u/maoa)\
**Post date:** [December 8, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936/2 "2009-12-08T13:27:44Z")

</div>

Sorry, this has just been solved by some one.

---

<div class="post-metadata">

**Author:** ![maoa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@maoa](https://www.ruby-forum.com/u/maoa)\
**Post date:** [December 22, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/help-ruby-wm-with-c-ext/179936/3 "2009-12-22T19:44:09Z")

</div>

Hello,

sorry to reply that late and out of list, but I seem to miss your mail.  
The funny thing  
is that this extension basically wraps just xlib which is easiert with  
ruby-ffi.

Since you are interested in a wm with ruby, I would like to suggest you  
my projekt:

[http://unexist.scrapping.cc/projects/subtle](http://unexist.scrapping.cc/projects/subtle)

A wm written in C but with a strong integration of ruby.

Wbr, Christoph

---- On Tue, 08 Dec 2009 12:45:34 +0100 Mao Mr [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote ----
