Help building Ruby 1.9 on Windows

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

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 http://www.ruby-lang.org/en/downloads/\.
Maybe that will suffice? Or do you mean that you need to modify the
source yourself?

Jeff

···

On Apr 5, 3:59 pm, "Justin Bailey" <jgbai...@gmail.com> 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.

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

···

On Apr 5, 1:59 pm, "Justin Bailey" wrote:

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

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

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

Justin

···

On 4/6/07, Wolfgang Nádasi-Donner <wonado@donnerweb.de> 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.

Sorry, you're right, I guess I misunderstood their definition of
"development" build.

Jeff

···

On Apr 6, 9:55 am, Wolfgang Nádasi-Donner <won...@donnerweb.de> 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