# Help building Ruby 1.9 on Windows

**URL:** <https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243>\
**Category:** Ruby\
**Created:** [April 5, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243 "2007-04-05T23:00:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 5, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/1 "2007-04-05T23:00:40Z")

</div>

I am looking for some advice on building Ruby 1.9 on windows. Following  
the  
instructions found in this thread  
[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/184380](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/184380), I  
have  
managed to get pretty far but not far enough. I have Visual Studio 2005  
Professional, and I am only building 1.9 to test a very small portion of  
it  
(some recent changes to Net::HTTP). Therefore, I don’t think binary  
compatibility with extensions matters much. I’ve heard that is a problem  
between the various compilers.

Anyways, when I build, I get errors such as:

```
    cl -nologo -MD -Zi -O2b2xty- -DRUBY_EXPORT -I. 

```

-Ic:/ruby-src/ruby  
-Ic:/ruby-src/ruby/missing -D\_CRT\_SECURE\_NO\_DEPRECATE -D  
\_CRT\_NONSTDC\_NO\_DEPRECATE -c -Tcc:/ruby-src/ruby/blockinlining.c  
blockinlining.c  
C:\WINDOWS\system32\cmd.exe /C c:\ruby-src\ruby\win32\rm.bat  
ruby.exe  
ruby c:/ruby-src/ruby/tool/insns2vm.rb  
–srcdir=“c:/ruby-src/ruby”  
‘ruby’ is not recognized as an internal or external command,  
operable program or batch file.  
NMAKE : fatal error U1077: ‘ruby’ : return code ‘0x1’  
Stop.

This seems to say I need to have ruby built already to build ruby. Is  
that  
true or can anyone offer suggestions?

Thanks!

Justin

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 6, 2007, 2:04am UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/2 "2007-04-06T02:04:58Z")

</div>

Hello,

In message “Help building Ruby 1.9 on Windows”  
on Apr.06,2007 05:59:49, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
| This seems to say I need to have ruby built already to build ruby. Is that  
| true or can anyone offer suggestions?

Yes, you are right.  
When building ruby 1.9 from Subversion repository, you need  
built ruby such as 1.8.

Regards,

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 6, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/3 "2007-04-06T16:42:28Z")

</div>

On Apr 5, 3:59 pm, “Justin B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Professional, and I am only building 1.9 to test a very small portion of it  
> (some recent changes to Net::HTTP). Therefore, I don’t think binary  
> compatibility with extensions matters much. I’ve heard that is a problem  
> between the various compilers.

I haven’t had a chance to try to build from source, but I do know that  
you can get 1.9 nightly binaries for Windows from  
[Download Ruby](http://www.ruby-lang.org/en/downloads/).  
Maybe that will suffice? Or do you mean that you need to modify the  
source yourself?

Jeff

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 6, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/4 "2007-04-06T16:55:47Z")

</div>

Jeff schrieb:

> I haven’t had a chance to try to build from source, but I do know that  
> you can get 1.9 nightly binaries for Windows from [Download Ruby](http://www.ruby-lang.org/en/downloads/).

Where are “nightly binaries for Windows”? The only binary for Windows is  
“ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.0-20060415-i386-mswin32.zip”,  
which is an old one.

Wolfgang Nádasi-Donner

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 7, 2007, 6:23am UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/5 "2007-04-07T06:23:53Z")

</div>

On Apr 6, 9:55 am, Wolfgang Nádasi-Donner [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Where are “nightly binaries for Windows”? The only binary for Windows is  
> “ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.0-20060415…”,  
> which is an old one.
> 
> Wolfgang Nádasi-Donner

Sorry, you’re right, I guess I misunderstood their definition of  
“development” build.

Jeff

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 6, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/6 "2007-04-06T17:38:25Z")

</div>

On 4/6/07, Wolfgang NÃ¡dasi-Donner [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Where are “nightly binaries for Windows”? The only binary for Windows is  
> "  
> ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.0-20060415-i386-mswin32.zip  
> ",  
> which is an old one.

If someone would like to upload a new binary, I’d be really grateful.

Justin

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [April 15, 2007, 3:09am UTC](https://www.ruby-forum.com/t/help-building-ruby-1-9-on-windows/91243/7 "2007-04-15T03:09:11Z")

</div>

On Apr 5, 1:59 pm, “Justin B.” wrote:

> I am looking for some advice on building Ruby 1.9 on windows.

Here’s what I did on XP SP2 running under Parallels.

- Download and install MSFT Visual C++ 2005 Express Edition (gratis)

- Get the Windows Platform SDK

- Install Ruby 1.8.x using 1-click Windows Installer

- Grab Ruby 1.9 from Subversion

- Click through: Start Menu / Platform SDK / Open Build Environment  
Window / Windows XP 32-bit … / Set Windows XP … Build Environment

- In the command window that opens, run “c:\Program Files\Microsoft  
Visual Studio 8\Common7\Tools\vsvars32.bat”

- win32/configure.bat

- nmake

Result:

C:\dev\ruby\win32\>ruby -v  
ruby 1.9.0 (2007-04-12 patchlevel 0) [i386-mswin32\_80]

~L
