Subversion on Solaris 10

About Subversion

Subversion is a popular version control system for UNIX and Windows. You will need Subversion to retrieve the latest development versions of common freeware programs, such as VirtualBox.

Use the instructions below to compile Subversion for Solaris 10.

Install

Download Berkeley DB and GNU sed packages from Solaris Freeware or use the Solaris Companion DVD.

Cd to the directory containing the packages and install as root

bunzip2 SFWbdb.pkg.bz2
bunzip2 SFWsed.pkg.bz2
pkgadd -d SFWbdb.pkg
pkgadd -d SFWsed.pkg

Done

Compile Subversion

wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.bz2
umask 022
bunzip2 -c subversion-1.4.6.tar.bz2 | tar xf - 
bunzip2 -c subversion-deps-1.4.6.tar.bz2 | tar xf -
cd subversion-1.4.6/
./configure --prefix=/opt/subversion-1.4.6 --with-ssl --enable-static \
    --disable-shared --with-berkeley-db=/opt/sfw
gmake

Done

Login as root, cd to source directory and install

gmake install

Done

Optional: remove developer files to save disk space

cd /opt/subversion-1.4.6
rm -fr include lib share/doc build
rm bin/apr-config bin/apu-config bin/neon-config

Add /opt/subversion-1.4.6/bin to your PATH and your are ready to use Subversion

PATH=/opt/subversion-1.4.6/bin:$PATH

Complete

Version History

Feb 26, 2008: Compiled succesfully on Solaris 10 u4.