Installing Subversion

Downloading

You can download Subversion from it’s site: http://subversion.tigris.org/

Compilation

Compiling uses the normal ./configure, make, make install procedure. It should find your SWIG and Ruby installs and use them automatically.

Note: After you have run the make install procedure, proceed on to the Installation of the bindings, as that takes place in the Subversion codebase. Do not delete the Subversion code nor run a make clean as then you will have to recompile everything.

Problems Compiling Subversion in Mac OS X 10.4 (Tiger)

In Mac OS X 10.4, if you are using the default Ruby install, then you will get the following error:

checking for rb_hash_foreach()... no
configure: WARNING: The detected Ruby is too old for Subversion to use
configure: WARNING: A Ruby which has rb_hash_foreach is required to use the
configure: WARNING: Subversion Ruby bindings
configure: WARNING: Upgrade to the official 1.8.2 release, or later

The version that comes with Mac OS X does indeed have this function, so you will need to edit the configure file. Just open it in your favourite text editor, and edit line #22545.

Comment out where it says:

    RUBY="none"

So that it says

    #RUBY="none"

When You Run configure you should see the following near the end:

configure: Configuring Ruby SWIG binding
checking for Ruby include path... -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0
checking how to compile Ruby extensions... gcc  -arch ppc -g -Os -pipe -fno-common  -arch ppc -pipe -pipe -fno-common $(SWIG_RB_INCLUDES)
checking how to link Ruby extensions... gcc -shrext .bundle -dynamic -bundle -undefined suppress -flat_namespace
checking where to install Ruby scripts... /usr/lib/ruby/site_ruby/1.8
checking where to install Ruby extensions... /usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0

If so then it will be all prepared for installing the Ruby SVN bindings.

 
svnbindings/svn.txt · Last modified: 2005/11/08 04:38 by mhulse
 
Recent changes RSS feed