# How to build Ruby on MinGW?

**URL:** <https://www.ruby-forum.com/t/how-to-build-ruby-on-mingw/92293>\
**Category:** Ruby\
**Created:** [April 17, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/how-to-build-ruby-on-mingw/92293 "2007-04-17T22:45:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@toby](https://www.ruby-forum.com/u/toby)\
**Post date:** [April 17, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/how-to-build-ruby-on-mingw/92293/1 "2007-04-17T22:45:53Z")

</div>

Hi all,

Does anyone have a howto or instruction list on how to build Ruby 1.8.x  
(preferably .6) under MinGW _with_ binary extensions e.g. Zlib and  
OpenSSL?

I can’t find any docs/articles on that and the one from [ruby-lang.org](http://ruby-lang.org) is  
somewhat broken (complains of fcntl() not being implemented).

When I try to build it with a ./configure ; make ; make install, the  
ruby interpreter builds fine, but zlib, openssl, etc. do not build  
binaries for use with it (I have MinGW/MSYS installed already).

Any ideas? Thanks.

–  
Toby DiPasquale

---

<div class="post-metadata">

**Author:** ![toby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@toby](https://www.ruby-forum.com/u/toby)\
**Post date:** [April 18, 2007, 4:46am UTC](https://www.ruby-forum.com/t/how-to-build-ruby-on-mingw/92293/2 "2007-04-18T04:46:54Z")

</div>

Toby Dipasquale wrote:

> Hi all,
> 
> Does anyone have a howto or instruction list on how to build Ruby 1.8.x  
> (preferably .6) under MinGW _with_ binary extensions e.g. Zlib and  
> OpenSSL?
> 
> I can’t find any docs/articles on that and the one from [ruby-lang.org](http://ruby-lang.org) is  
> somewhat broken (complains of fcntl() not being implemented).
> 
> When I try to build it with a ./configure ; make ; make install, the  
> ruby interpreter builds fine, but zlib, openssl, etc. do not build  
> binaries for use with it (I have MinGW/MSYS installed already).
> 
> Any ideas? Thanks.

I got a little farther in the build (zlib, but no openssl still) but  
I’ve since stopped as the MinGW build of Ruby still exhibits the broken  
I/O behavior described here:

[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/229801](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/229801)

I will have to use Python or Perl for this. Oh well…

–  
Toby DiPasquale
