# Compile on windows

**URL:** <https://www.ruby-forum.com/t/compile-on-windows/144524>\
**Category:** Ruby\
**Created:** [July 30, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/compile-on-windows/144524 "2008-07-30T17:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronn\_Ross](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@Ronn\_Ross](https://www.ruby-forum.com/u/Ronn_Ross)\
**Post date:** [July 30, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/compile-on-windows/144524/1 "2008-07-30T17:00:19Z")

</div>

Hello all,

I’m running Ruby on windows xp. I made changes to the keywords file and  
would like to recompile the Ruby source to see my changes. How do I  
recompile Ruby source on windows?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Ronn\_Ross](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@Ronn\_Ross](https://www.ruby-forum.com/u/Ronn_Ross)\
**Post date:** [July 30, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/compile-on-windows/144524/2 "2008-07-30T18:24:08Z")

</div>

You could download and tweak the source for the mingw download. I think  
🙂

> **[Testing the new One-Click Ruby Installer for Windows | AkitaOnRails.com](https://www.akitaonrails.com/2008/7/21/testing-the-new-one-click-ruby-installer-for-windows)**
>
> Leitores brasileiros: cliquem aqui
> If you read my recent interview with Luis Lavena you’re aware that he shifted the efforts from Visual Studio 6 p...

> **[Still playing with Ruby on Windows | AkitaOnRails.com](https://www.akitaonrails.com/2008/7/26/still-playing-with-ruby-on-windows)**
>
> Leitores brasileiros: cliquem aqui
> A week ago I’ve tested the newest One-Click Ruby Installer build and found a few minor glitches. Since then I’ve...

[http://rubyinstaller.rubyforge.org/wiki/wiki.pl?Mingw](http://rubyinstaller.rubyforge.org/wiki/wiki.pl?Mingw)

Those talk about how to compile it with mingw.  
With MSVC I’m not sure how 🙂

Good luck.

-R

Ronn Ross wrote:

> Hello all,
> 
> I’m running Ruby on windows xp. I made changes to the keywords file and  
> would like to recompile the Ruby source to see my changes. How do I  
> recompile Ruby source on windows?
> 
> Thanks in advance

---

<div class="post-metadata">

**Author:** ![Ronn\_Ross](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecc23a/32.png) [@Ronn\_Ross](https://www.ruby-forum.com/u/Ronn_Ross)\
**Post date:** [July 31, 2008, 9:56am UTC](https://www.ruby-forum.com/t/compile-on-windows/144524/3 "2008-07-31T09:56:37Z")

</div>

Hi,

At Wed, 30 Jul 2008 23:58:54 +0900,  
Ronn Ross wrote in [ruby-talk:309582]:

> I’m running Ruby on windows xp. I made changes to the keywords file and  
> would like to recompile the Ruby source to see my changes. How do I  
> recompile Ruby source on windows?

1. install cygwin including necessary packages: autoconf,  
binutils, bison, gcc, gcc-mingw, gperf, make and  
mingw-runtime,

2. make build directory under the source directory,  
chdir ruby/src/  
mkdir i386-mingw32  
chdir i386-mingw32

3. run configure with CC=‘gcc -mno-cygwin’,  
…/configure CC=‘gcc -mno-cygwin’

4. compile and install  
make all install DESTDIR=x:/path/to/install

Note that you need gperf command because you changed keywords.
