How to build Ruby on MinGW?

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 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

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 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

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


Toby DiPasquale