John Lam 1997 — 2026

I Need More Hours in a Day!

RubyCLR will only compile on Ruby 1.8.2. There, I said it. The pre-built runtime.dll will run on 1.8.4, but you will not be able to build. There are a whole pile of issues around getting it to build on 1.8.4 (and I believe on 1.8.5 as well).

I took a quick look last night during a break from my current battles in refactoring the existing RubyCLR codebase. In short, it’s not pretty. It also won’t be resolved until I finish refactoring the current codebase and writing some long-overdue documentation.

I would love to make it a higher-priority item, but unless someone can donate some time to figuring out what’s blocking compilation (and execution – there’s a nasty seg fault that happens when running nmake) this will have to go on the back-burner.

Now where did I put that human cloning book?

5 archived reader comments

Kurtiss Hare (2006-09-08)

After a bit of messing around, I was able to build RubyCLR drop 4, using Visual C++ 2005 Express, the latest Microsoft Platform SDK for Windows Server 2003 SP1, and Ruby 1.8.5. If I remember correctly, the main hurdles I had to overcome were adding the proper environment vars to the Visual Studio 2005 command prompt:

INCLUDE=C:\Program Files\Microsoft Platform SDK\Include;%INCLUDE LIB=C:\Program Files\Microsoft Platform SDK\Lib;%LIB%

It’s different per-architecture, but the x86 file is at VSDIR\Common 7\Tools\vsvars32.bat.

I added the Platform SDK Include directory to the project includes (alongside Ruby185 and Ruby185\win32). I built against msvcrt-ruby18.lib, ws2_32.lib, and ole32.lib, which live in the Platform SDK Lib directory, or ruby\lib.

Where are folks getting stuck?

Will Green (2006-09-08)

Would being able to build with the full-blown Visual Studio 2005 be of any help? I have an MSDN subscription through work, and I have VS 2005 on my home machine.

Doesn’t hurt that my manager has expressed interrest in Ruby on the .Net platform, either. As long as I do it on my own time.

sean.ohalpin@gmail.com (2006-09-25)

Hi Jon - we’ve had no problems compiling with VS2005 + Ruby 1.8.4 (following your instructions exactly). What problems have you had?

Thanks for RubyCLR by the way! :)

Best regards, Sean

So many Versions of 1.8.2 (2006-10-11)

hi, there are so many version of Ruby 1.8.2. check below. which version i have to use.

and i am not able to find src/win32 folder when i installed ruby. from where i can get the src folder.

1.8.2-15 Stable Release 1.8.2-14 Final 1.8.2-14_rc11 1.8.2-14_rc10 1.8.2-14_rc7

John Lam (2006-10-11)

I use 1.8.2-15 Stable Release of the 1-click installer. You’ll need to download the source code separately from http://raa.ruby-lang.org/project/ruby/1.8.2. Unzip / untar the source code into the same directory that you installed the 1-click installer (c:\ruby on my computer).