Monday, August 11, 2008

SVN 1.5.1 / Ruby bindings on Windows

Rather than messing around with compiling swig bindings etc:

  1. Download the ruby bindings from the svn site: (http://subversion.tigris.org/files/documents/15/43245/svn-win32-1.5.1_rb.zip)

  2. From the zip - copy ruby\lib\svn into c:\ruby\lib\ruby\site_ruby\1.8\svn

  3. From the zip – copy ruby\ext\svn\ext into c:\ruby\lib\ruby\site_ruby\1.8\svn\ext

  4. copy libeay32.dll and ssleay32.dll from your subversion 1.5 directory into c:\ruby\bin

  5. run irb and test with: require ‘svn/core’

4 comments:

JesperE said...

Where can I find updated binaries? I've looked around on the Subversion site, but there seems to be no link.

dan said...

Hi Jesper, they are available on the subversion site here: svn-win32-1.5.5_rb.zip If you go to the subversion site and select windows binaries for apache 2.2 you will see the list.

Ramon Herrera said...

I just over-wrote the two DLL files (libeay32 and ssleay32) that came with my ruby 1.8.6 installation with the two that came with my svn 1.5.5 installation. (Yes, I saved the originals.)

This was necessary to passing the "require 'svn/core'" test, but is this likely to have broken something within ruby?

dan said...

Hey Ramon, i'd hope not but you never know :) The dll's are OpenSSL libraries so if you see any weird behaviour when using any ssl related functionality in ruby, that'd probably be the culprit