Before anything you have to install X Code Tools you can find in Os X DVD.This tutorial has been done with Leopard, but it should work in Tiger as well.
Downloading files
Download berkeley DB source from oracle site
db-4.6.21.tar.gz
Download apache portable runtime source with utils and iconv
apr-1.2.12.tar.bz2.tar
apr-util-1.2.12.tar.bz2.tar
apr-iconv-1.2.1.tar.bz2.tar
Download subversion source
Building sources
Building berkeley DB
Unpack source and build source
$ tar xfz db-4.6.21.tar.gz $ cd db-4.6.21/build_unix $ ../dist/configure --prefix /opt/svn && make $ make install
Building apache portable runtime with utils and iconv
Unpack apr and build source
$ tar jxf apr-1.2.12.tar.bz2.tar$ cd apr-1.2.12 $ ./configure --prefix=/opt/svn && make $ make install
Unpack apr-utils and build source
$ tar jxf apr-util-1.2.12.tar.bz2.tar
$ cd apr-util-1.2.12
$ ./configure --prefix=/opt/svn \
--with-berkeley-db=/opt/svn \
--with-apr=/opt/svn && make
$ make install
Unpack apr-iconv and build source
$ tar jxf apr-iconv-1.2.1.tar.bz2.tar $ cd apr-iconv-1.2.1 $ ./configure --prefix=/opt/svn --with-apr=/opt/svn && make $ make install
Building subversion
Unpack subversion and build source
$ tar jxf subversion-1.4.6.tar.bz2
$ cd subversion-1.4.6
$ ./configure --prefix=/opt/svn \
--with-berkeley-db=/opt/svn \
--with-apr=/opt/svn \
--with-apr-util=/opt/svn \
--with-ssl && make
$ make install
Final configuration
Finally we create a repository for our project doing something like that:…but first would be a good idea to add the new path to our profile:
$ echo "export PATH=/opt/svn/bin:$PATH" >> ~/.profile $ export PATH=/opt/svn/bin:$PATH
Initialize the repository
$ mkdir -p /path/to/new/repository
$ svnadmin create /path/to/new/repository
$ svn import /path/to/local/files \
file:///path/to/new/repository/project_name \
-m "Comment of the initialitzation"
Once the repository is created then we can access to it with a gui program such as svnX. The first time you open the svnX it shows you an error because it can’t find svn commands. Properties window will open, you only have to set this path: /opt/svn/bin

Then add the repository to repositories window like this:

Now double click to the repository and click to “svn checkout” choose the route where you want the local copy…

…and it will be added to working copies

And that’s all you need to start working with subversion.