Saturday, August 16, 2008

Build Ruby on Windows

Get the Ruby 1.8.7 source code from ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p71.tar.gz. Extract the source code to a directory such as D:/Ruby 1.8.7-p71 . Open a Visual Studio .NET 2003 Command Prompt. Run the following commands to compile ruby.
  • cd /d D:/Ruby 1.8.7-p71
  • win32\configure.bat
  • nmake
If the following error occurs, its means that Cygwin find is invoked from the make file. Make sure that windows find precedes Cygwin find in PATH environment variable.


Creating Makefile
find: `=': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x1'
Stop.

No comments: