Today I decided to play around with Ruby a bit again. The latest version being 2.1.2, official installers were only available up to 2.0. I know it’s only one minor version, but I don’t like using outdated versions. The warning about many packages not being compatible to Ruby 2.0 on Windows (especially the 64bit version) only worried me slightly. Unfortunately I’ve been used to some abuse from working in Python 3, where an awful lot of packages still is only compatible to Python 2.7.
At any rate, compiling Ruby 2.1.2 on Windows 8 (x64) wasn’t as straightforward as one might think, but also not terribly complicated. This is what I did:
- Installed Visual Studio 2013 Ultimate & Windows 8.1 Platform SDK
- Downloaded & extracted Ruby 2.1.2 source tarball to some directory %SRC%
- Open Visual Studio Tools / VS2013 x64 Native Tools Command Prompt
- In %SRC% execute win32\configure –prefix “C:\Ruby”
- In %SRC% execute nmake – at this point the compilation process failed because the file “probes.h” could not be found. The file is located in the “win32” subfolder, and curiously simply copying it into the %SRC% folder fixed the problem and allowed the compilation process to finish.
- nmake test should pass all tests
- nmake install
So the whole process was not the difficult once I figured out the details. At the beginning I also ran into problems when attempting to execute nmake from the win32 subfolder directly, which doesn’t work as pointed out at the bottom of the README file. ^_^