amtanay
amtanay

Reputation: 23

How to access svn repo using ruby in svn_wc

I am using svn_wc. It gives err as no such file to load -- svn/core (LoadError) what to do?

Upvotes: 0

Views: 1051

Answers (2)

stack1
stack1

Reputation: 1022

The above answer is a link only answer and can become useless when the link is dead. Dumping the link contents here -

SVN 1.5.1 / Ruby bindings on Windows Rather than messing around with compiling swig bindings etc:

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

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

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

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

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

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

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.

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?

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

Upvotes: 1

tsundoku
tsundoku

Reputation: 1350

Ruby can't find svn/core in your installation, if you look at the github page for svn_wc the requirements are listed as:

Requires that the Subversion (SWIG) Ruby Bindings are installed

Which is much easier to do on Linux and OSX than on Windows

Upvotes: 0

Related Questions