The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Subversion Ruby Bindings - Got the LoadError blues for svn/core/ext?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Nathaniel Brown

Posts: 54
Nickname: nshb
Registered: Oct, 2005

Nathaniel Brown is Technology Consultant in Vancouver, Canada
Subversion Ruby Bindings - Got the LoadError blues for svn/core/ext? Posted: Aug 6, 2007 11:49 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Nathaniel Brown.
Original Post: Subversion Ruby Bindings - Got the LoadError blues for svn/core/ext?
Feed Title: Nathaniel Brown
Feed URL: http://feeds.feedburner.com/nshb
Feed Description: Insight as a professional Technology Consltant and Photographer.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Nathaniel Brown
Latest Posts From Nathaniel Brown

Advertisement

I use MacPorts to manage my libraries on OSX and until now, they have worked flawlessly. I get tons of flack for using RPM's, PORT's, YUM, up2date, any kinda package manager on any linux OS I manage. Whatever. They have, until now, worked flawlessly.

In any case, I am writing a cool SVN tool in a Rails app, and low and behold, it needed some Ruby bindings. I had been using the same bindings I managed to get working some time ago, and had forgotten how to get them working at the time. I searched far and wide to find to find that subversion-rubybindings had the swig-rb libraries packaged in, but that still didn't work. Something still failed whenever I tried to "require 'svn/core/'". I would always get a random LoadError saying that the system couldn't find "svn/core/ext".

So... I did some more research and decided to just do it manually. No real package for this, but you can follow these simple steps to make sure that you keep your MacPort Subversion install working, and simply upgrade the swig bindings. I imagine the next time you upgrade subversion, you may have to do this again?

The first thing you need to do is grab the source code and compile SWIG.


wget http://internap.dl.sourceforge.net/sourceforge/swig/swig-1.3.31.tar.gz
tar xzvf swig-1.3.31.tar.gz
cd ./swig-1.3.31
./configure
make
sudo make install

Next, grab the source code for Subversion. At present, 1.4.4 is the latest, but later on you may want to grab a newer version here.


wget http://subversion.tigris.org/downloads/subversion-1.4.4.tar.gz
tar xzvf subversion-1.4.4.tar.gz
cd subversion-1.4.4

This is the important part. After you have unpacked subversion, you only need to configure it. But... do make sure to use this command precisely!


./configure --prefix=/opt/local --with-openssl --with-ssl --with-zlib

After that, simply build the swig-rb pieces then install it up.


make swig-rb
sudo make install-swig-rb

Now see if everything worked alright.


ruby -e 'puts require("svn/core")'

Credit for the raw commands (I had tweak the path on one of the configures for OSX) go to tutorial for Ruby Subversion Bindings for Warehouse.

Read: Subversion Ruby Bindings - Got the LoadError blues for svn/core/ext?

Topic: SuperCaller version 1.0.0 has been released! Previous Topic   Next Topic Topic: New printer!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use