# Below we use the /usr prefix to install Subversion under. If you want
# to uninstall Subversion from either /usr or /usr/local, skip down to the
# bottom for instructions.
# Prerequisites:
# Apache Portable Runtime 0.9.7 and APR-util
# If you'd rather, you can install APR and APR-util from the Subversion
# dependency package (subversion-deps-x.x.x.tar.bz2).
# If you want Berkeley DB support, you need to build APR-util with support for it;
# BDB 4.3.27 is the recommended version. You only need BDB support if you
# will have local BDB-based Subversion repositories.
# pkg-config
# neon 0.25.x, 0.26.x, 0.27.x, or 0.28.x
# or serf
# sqlite
# doxygen (optional; for documentation)
# expat
# SASL
# D-Bus
# gnome-keyring
# zlib
# Python >= 2.0
# JDK (optional; see subversion/bindings/java/README)
# Perl
# Ruby 1.8.x (it says 1.9.x is too new)
# swig (optional; see subversion/bindings/swig/INSTALL)
# OpenSSL (optional; tells libneon to use it)
# iconv (unless you use --disable-nls)
# Apache >= 2.0.49 or svnserve (if you want your own remotely
# accessible repository)
cd
test -f installed/subversion-1.7.3.tar.bz2 &&
mv installed/subversion-1.7.3.tar.bz2 .
test ! -f subversion-1.7.3.tar.bz2 &&
wget http://mirrors.ibiblio.org/apache/subversion/subversion-1.7.3.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "867fb0a5db00710cf8dce0bdfa094b3b subversion-1.7.3.tar.bz2" | \
md5sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "subversion-*" -exec rm -r {} \;
tar xjvf ~/subversion-1.7.3.tar.bz2
cd subversion-1.7.3
test $UID = 0 && chown -R root:root .
# Read ./README and ./INSTALL, and ./CHANGES if you're upgrading
# If you have Apache 2.x installed, but you don't want Subversion to use it,
# pass --without-apache to configure. In order for the Subversion modules
# to work, Apache has to have been built with --enable-dav --enable-dav-fs
#
# If you do have Apache 2.x installed, this will allow DSO support for
# the Apache module:
# --with-apxs=/usr/local/apache2/bin/apxs
# If you have both neon and serf installed and want to build serf support,
# pass --with-serf --without-neon to configure
# --with-ssl enables neon to use SSL (if it has SSL support built-in)
./configure --prefix=/usr --mandir=/usr/man --disable-nls --with-ssl
make
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
# Become root to install it
su
# Remove Slackware package, clean up old shared libraries, and
test -x /sbin/removepkg && /sbin/removepkg subversion
rm -f /usr/lib/libsvn_*
# Install the new version
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .
# If you have Apache 2.x installed, it should have installed the Subversion
# modules into Apache's modules directory (/usr/local/apache2/modules) and
# updated your httpd.conf (unless you passed --disable-mod-activation to
# configure) to use them (look for LoadModule lines).