In my Rails project, I am essentially trying to load my svn library by using the following commands in Ruby:
config.autoload_paths << "/opt/subversion/lib/svn-ruby" config.autoload_paths << "/opt/subversion/lib/svn-ruby/universal-darwin/"
Then in another file:
require "svn/repos" # load SVN Ruby bindings
However, I get the following error.
LoadError (cannot load such file -- svn/repos)
Essentially my SVN Ruby bindings are incorrect. I am running Mac OS X 10.8 and installed SVN through XCode Command line tools. Do you know what the solution could be?
I found that you have to have to move your installed svn files to the proper directories and link them to the correct folders using the following commands, but there no svn folder exists for me under /Library/Ruby/Site/1.8 or /Library/Ruby/Site/1.8/universal-darwin12.0
mv /Library/Ruby/Site/1.8/svn /Library/Ruby/Site/1.8/svn.bak mv /Library/Ruby/Site/1.8/universal-darwin12.0/svn /Library/Ruby/Site/1.8/universal-darwin9.0/svn.bak ln -s /opt/subversion/lib/svn-ruby/svn /Library/Ruby/Site/1.8/svn ln -s /opt/subversion/lib/svn-ruby/universal-darwin/svn /Library/Ruby/Site/1.8/universal-darwin12.0/svn