# MinGW with ruby c language interface

**URL:** <https://www.ruby-forum.com/t/mingw-with-ruby-c-language-interface/134900>\
**Category:** Ruby\
**Created:** [April 16, 2008, 12:30am UTC](https://www.ruby-forum.com/t/mingw-with-ruby-c-language-interface/134900 "2008-04-16T00:30:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minseok\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@Minseok\_C](https://www.ruby-forum.com/u/Minseok_C)\
**Post date:** [April 16, 2008, 12:30am UTC](https://www.ruby-forum.com/t/mingw-with-ruby-c-language-interface/134900/1 "2008-04-16T00:30:29Z")

</div>

I installed ruby 1.8.6 one-click installer in my vista.  
Is there any easy way to make MinGW environments for ruby c-interface  
without recompiling ruby.

---

<div class="post-metadata">

**Author:** ![Minseok\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@Minseok\_C](https://www.ruby-forum.com/u/Minseok_C)\
**Post date:** [April 16, 2008, 1:25am UTC](https://www.ruby-forum.com/t/mingw-with-ruby-c-language-interface/134900/2 "2008-04-16T01:25:26Z")

</div>

On Apr 15, 7:26 pm, Minseok C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I installed ruby 1.8.6 one-click installer in my vista.  
> Is there any easy way to make MinGW environments for ruby c-interface  
> without recompiling ruby.

Short answer: no.

Long answer:

If you want to go that road, you will need do somethink like Aslak  
Hellesoy did for ruby-usb:

[http://blog.aslakhellesoy.com/2008/3/30/ruby-usb-gems](http://blog.aslakhellesoy.com/2008/3/30/ruby-usb-gems)

The other, more complex way is get a rbconfig.rb from a MinGW  
environment and put inside your existing One-Click environment,  
replacing your original VC6 one.

_Another_ approach is go for a full MinGW build of Ruby, like we are  
doing for One-Click Installer:

[http://blog.mmediasys.com/2008/03/29/progress-of-one-click-installer-rubyinstaller/](http://blog.mmediasys.com/2008/03/29/progress-of-one-click-installer-rubyinstaller/)

HTH,
