John Lam 1997 — 2026

RubyCLR build instructions

I tried to upload a binary distribution of runtime.dll to RubyForge last night, but it kept timing out.

So for those of you who want to build from sources, Justin Bailey just sent in some notes to help make it easier. Thanks, Justin!

The fourth drop does not contain binaries. Here are some build instructions. You must have Visual Studio 2005 installed with the C++ package. It is also recommended you have the ruby 1.8.4 one-click installer package installed.

  1. Open the Visual Studio 2005 Command Prompt so your path is correctly set to point to the VS tools.
  2. Go to your ruby src/win32 directory
  3. type “configure.bat”
  4. type “nmake”. This process may or may not fail – all that matters is ruby/config.h gets created
  5. Open the RubyCLR solution (RubyCLR.sln) in Visual Studio
  6. Open the Project Properties for the Runtime project
  7. Under “C/C++” ensure the “Additional Include Directories” setting contains the full path to your ruby/src and ruby/src/win32 directories.
  8. Under “Linker” ensure the “Additional Library Directories” setting contains the full path to your ruby/lib directory
  9. Build the project!

One additional note that I’d like to add to these instructions: if you have Rake installed, all you have to do is make sure that you follow steps 1-4, and then you can just type type rake from the trunk/ directory.

1 archived reader comment

Mischa Kroon (2006-06-24)

why not go with the easier:

Use one click installer: (link) or make sure you have installed ruby 1.8.4 with …

then use rake check to see if installed with: (syntax to gem install rake)

offcourse the easier part is just an opionion :)