Wednesday, December 7, 2011

svn client on suse 9.2 install

Sometimes I need to install svn clients.  Sometimes this has to be done by scratch 
by source on SuSE 9.2 Pro systems.
Most will come pre-loaded with OpenSSL libs and sometimes with berkleydb.

The below will use downloaded apr libs; and not system local libs.
My compile takes place in /usr/local.
in tmp

# get and extract subversion sources
wget http://subversion.tigris.org/downloads/subversion-xxx.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-xxx.tar.gz
tar xvfz subversion-xxx.tar.gz
tar xvfz subversion-deps-xxx.tar.gz

# get and extract latest version of apache portable runtime
wget http://apache.ibiblio.org/apr/apr-xxx.tar.gz
wget http://apache.ibiblio.org/apr/apr-util-xxx.tar.gz
tar xjvf apr-xxx.tar.gz
tar xjvf apr-util-xxx.tar.bz2

# build apache portable runtime
cd apr-xxx
./buildconf
./configure
make && make check
sudo make install
cd ../apr-util-xxx
./buildconf --with-apr=../apr-xxx
./configure --with-apr=/usr/local/apr/bin/apr-1-config
make && make check
sudo make install

# build subversion
cd ../subversion-xxx
rm -r apr apr-util
sudo chkconfig svn off
sudo rm -f /usr/local/lib/libsvn*
./configure --with-apr=/usr/local/apr/bin/apr-1-config      \
            --with-apr-util=/usr/local/apr/bin/apu-1-config \
            --disable-mod-activation                        \
            --with-ssl
make && make check
sudo make install

# link svn binaries

host:/usr/bin # ln -s /usr/local/bin/svnadmin ./svnadmin
host:/usr/bin # ln -s /usr/local/bin/svndumpfilter ./svndumpfilter
host:/usr/bin # ln -s /usr/local/bin/svnlook ./svnlook
host:/usr/bin # ln -s /usr/local/bin/svnserve ./svnserve
host:/usr/bin # ln -s /usr/local/bin/svnsync ./svnsync
host:/usr/bin # ln -s /usr/local/bin/svnversion ./svnversion
a new development...
wget http://apache.deathculture.net/subversion/subversion-1.7.2.tar.gz
tar xvfz subversion-1.7.2.tar.gz
cd subversion-1.7.2/
./get-deps.sh 
./configure --without-serf --without-neon
make && make install
which svn
svn
in case suse (here's looking at you stock install sles11) is a punk...
apr
./configure --enable-share

apr-util
./configure --with-apr=/usr/local/apr

svn
./configure --without-berkeley-db \
--with-apr=/usr/local/apr \
--with-apr=/usr/local/apr \
--without-apxs \
--without-neon \
--without-serf

No comments: