Saturday, December 6, 2008

Compiling Subversion

My fedora core 5 box is running a cvs repo, however I wanted to check out subversion as well. Yum suggested an older version and since I had nothing better to do, I decided to compile the latest release.

Required Tarballs:

Neon from
apr and apr-util from
subversion from

In my case I have downloaded neon-0.28.3, apr 1.3.3 and apr-util 1.3.4.

Apparently you can download apr,apr-util and neon from the subversion website as subversion-debs but I found about that after installing them.

I have used the default installation prefix /usr/local. You may wish to change that, but don't forget to change all corresponding information on the commands.

Build and install apr:


This will show any dependency errors in regard to subversion. Correct them before proceeding. In my case I had to install libtool.

make test
make install

Build and install apr-util:

./buildconf --with-apr=../apr-1.3.3/
./configure --with-apr=/usr/local/apr --with-berkeley-db=/usr
make test
make install

If you get an error in make regarding libtool command not found edit /usr/local/src/apr-util-1.3.4/xml/expat/lib/Makefile and change
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL = $(SHELL) libtool

Not linking against Berkeley DB will lead to a warning when compiling subversion and DBD support will not be provided.

Build and install neon:

./configure --with-ssl
make install

Build and install subversion:

./configure --with-apxs=/usr/sbin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/ --with-neon=/usr/local --with-ssl

Spent some time before getting that --with-neon expects a prefix to bin/neon-config.

make install
At this point I believe I got it installed. Now I should try to learn how to use it :-)

No comments: