Installation Steps for Subversion 1.7.1


Please read this entire document before performing any of the steps. If you already have a version of subversion installed, back up those files before doing this install in case you have any problems. You should also look at the Subversion Web Site and at the documentation files placed in /usr/local/doc/subversion files and subdirectories after the subversion package is installed.
The SPARC/Solaris 8 package may need /usr/lib/libm.so.2 which may not exist on some systems. You can use libm.so.1 by just doing ln -s /usr/lib/libm.so.1 /usr/lib/libm.so.2.
The Solaris 10 packages need a recent version of /usr/lib/libresolv.so.2. This build of Subversion was created with Solaris 10 5/08 s10s_u5wos_10 (from /etc/release). You may have to patch or update your system to obtain this newer libresolv.so.2 version.
Subversion uses a lot of other programs and libraries which need to be installed before using the subversion package. For each level of Solaris, you need to have already installed the following packages:

db-4.2.52.NC,
expat-2.0.1,
file-5.08,
libiconv-1.14,
libintl-3.4.0,
libxml2-2.7.8,
ncurses-5.7,
neon-0.29.6,
openldap-2.4.26,
openssl-1.0.0e,
sasl-2.1.25,
sqlite-3.7.2,
swig-1.3.40,
zlib-1.2.5,
libgcc-3.4.6

or newer versions from sunfreeware.com or from your own compiles.

It may be possible to use slightly older or newer versions of these packages and still have subversion run. Next, after you have installed the

subversion-1.7.1

package, you can go to /usr/local/bin and do

ldd svn

You will get a list of the libraries that svn related programs use. For example on my SPARC/Solaris 10 system, I get the result like

[1] /usr/local/bin> ldd svn
        libsvn_client-1.so.0 =>  /usr/local/lib/libsvn_client-1.so.0
        libsvn_wc-1.so.0 =>      /usr/local/lib/libsvn_wc-1.so.0
        libsvn_ra-1.so.0 =>      /usr/local/lib/libsvn_ra-1.so.0
        libsvn_diff-1.so.0 =>    /usr/local/lib/libsvn_diff-1.so.0
        libsvn_ra_local-1.so.0 =>        /usr/local/lib/libsvn_ra_local-1.so.0
        libsvn_repos-1.so.0 =>   /usr/local/lib/libsvn_repos-1.so.0
        libsvn_fs-1.so.0 =>      /usr/local/lib/libsvn_fs-1.so.0
        libsvn_fs_fs-1.so.0 =>   /usr/local/lib/libsvn_fs_fs-1.so.0
        libsvn_fs_util-1.so.0 =>         /usr/local/lib/libsvn_fs_util-1.so.0
        libsvn_ra_svn-1.so.0 =>  /usr/local/lib/libsvn_ra_svn-1.so.0
        libsasl2.so.2 =>         /usr/local/lib/libsasl2.so.2
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsvn_ra_neon-1.so.0 =>         /usr/local/lib/libsvn_ra_neon-1.so.0
        libsvn_delta-1.so.0 =>   /usr/local/lib/libsvn_delta-1.so.0
        libsvn_subr-1.so.0 =>    /usr/local/lib/libsvn_subr-1.so.0
        libsqlite3.so.0 =>       /usr/local/lib/libsqlite3.so.0
        libmagic.so.1 =>         /usr/local/lib/libmagic.so.1
        libaprutil-1.so.0 =>     /usr/local/apache2/lib/libaprutil-1.so.0
        libapr-1.so.0 =>         /usr/local/apache2/lib/libapr-1.so.0
        libuuid.so.1 =>  /usr/lib/libuuid.so.1
        libsendfile.so.1 =>      /usr/lib/libsendfile.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libneon.so.27 =>         /usr/local/lib/libneon.so.27
        libz.so =>       /usr/local/lib/libz.so
        libssl.so.1.0.0 =>       /usr/local/ssl/lib/libssl.so.1.0.0
        libcrypto.so.1.0.0 =>    /usr/local/ssl/lib/libcrypto.so.1.0.0
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libexpat.so.1 =>         /usr/local/lib/libexpat.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libintl.so.8 =>  /usr/local/lib/libintl.so.8
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libsec.so.1 =>   /usr/lib/libsec.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd.so.1 =>    /usr/lib/libmd.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libscf.so.1 =>   /usr/lib/libscf.so.1
        libavl.so.1 =>   /usr/lib/libavl.so.1
        libdoor.so.1 =>  /usr/lib/libdoor.so.1
        libuutil.so.1 =>         /usr/lib/libuutil.so.1
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libm.so.2 =>     /usr/lib/libm.so.2
        /platform/SUNW,Sun-Blade-2500/lib/libc_psr.so.1
        /platform/SUNW,Sun-Blade-2500/lib/libmd_psr.so.1

If some software is missing, you will see notices of missing libraries.

Once you have all the proper libraries installed along with the subversion package, you will need to edit a file if you are going to use subversion with apache. Go to /usr/local/apache2/conf. The two lines that need to be added to your httpd.conf file are

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

which are added at the end of the other LoadModule lines.

After you have done these steps, go to the documentation files in /usr/local/doc/subversion to find out what else you need to do to configure, start, and use subversion.

For those of you who want to know, subversion was compiled with just the

./configure --disable-nls --with-apxs=/usr/local/apache2/bin/apxs --with-ssl --with-neon=/usr/local --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config --prefix=/usr/local
make, make install steps. All the make check steps passed.

If you have problems with these installation steps, check the support emails address at Contact Information. If you have configuration or usage problems, go to the Subversion web site and then go to the documentation and mailing lists links there.


© Copyright 2011 Steven M. Christensen and Associates, Inc. This page was last updated on November 12, 2011.