# I need some help building ruby 1.8.6 with mingw

**URL:** <https://www.ruby-forum.com/t/i-need-some-help-building-ruby-1-8-6-with-mingw/115718>\
**Category:** Ruby\
**Created:** [September 27, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/i-need-some-help-building-ruby-1-8-6-with-mingw/115718 "2007-09-27T21:56:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 27, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/i-need-some-help-building-ruby-1-8-6-with-mingw/115718/1 "2007-09-27T21:56:00Z")

</div>

Hi all,

I’m building the most recent ruby 1.8.6 stable snapshot (build level  
5000) with mingw32. Everything’s fine, it builds without an error, but  
the socket extension is not built. Not even if I manually add the  
right switch to ./configure.  
Upon checking the log in the ext/sock folder, I found that it somehow  
does not find windows.h and winsock.h, though  
those are both in the include path. If I try to compile a simple c  
program wich includes \<winsock.h\>, it builds fine.  
What could be the problem?

Thank you in advance,  
Ochronus,  
A fellow rubyist 🙂

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 28, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/i-need-some-help-building-ruby-1-8-6-with-mingw/115718/2 "2007-09-28T12:05:57Z")

</div>

On szept. 27, 21:53, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> What could be the problem?
> 
> Thank you in advance,  
> Ochronus,  
> A fellow rubyist 🙂

Solved 🙂

It seems I had a nonstandard mingw installation, now, after  
reinstalling and fixing some minor annoyances, it works like a charm.
