To get Subversion installed on my account, I did the following:
For WebDAV access (access as in read, not in serve) to work, you need both Neon and BerkeleyDB. These are installed by doing the following:
BerkeleyDB:
Code:
cd
wget http://download.oracle.com/berkeley-db/db-4.5.20.tar.gz
tar -zxvf db-4.5.20.tar.gz
cd db-4.5.20/build_unix
../dist/configure --prefix=$HOME/usr
make -j8
make install
Neon (Subversion 1.4.6 needs Neon 0.25.5, so don't be a smartass and download the newest version):
Code:
cd
wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
tar -zxvf neon-0.25.5.tar.gz
cd neon-0.25.5
./configure --prefix=$HOME/usr --with-ssl=openssl
make -j8
make install
To make sure that all the binaries and libraries are found, do the following to add the right paths to your .bashrc
Code:
echo "export PATH=\$PATH:\$HOME/usr/bin" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/usr/lib" >> ~/.bashrc
source ~/.bashrc
Now install Subversion (you also need APR stuff).
Code:
cd
wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
tar -zxvf subversion-1.4.6.tar.gz
cd subversion-1.4.6
First install APR (inspired by this thread)
Code:
### Included from earlier post in this thread
wget http://apache.karegen.com/apr/apr-1.2.12.tar.bz2
tar -jxvf apr-1.2.12.tar.bz2
mv apr-1.2.12 apr
cd apr
./buildconf
./configure --prefix=$HOME/usr
make -j8
make install
cd ..
wget http://apache.karegen.com/apr/apr-util-1.2.12.tar.bz2
tar -jxvf apr-util-1.2.12.tar.bz2
mv apr-util-1.2.12 apr-util
cd apr-util
./buildconf
./configure --with-apr=$HOME/usr/bin/apr-1-config --prefix=$HOME/usr
make -j8
make install
cd ..
Now, Subversion installation continues
Code:
./configure --disable-shared --prefix=$HOME/usr --with-berkeley-db=$HOME/usr --with-neon=$HOME/usr
make -j8
make install
Now, you can remove all the source directories used:
Code:
cd
rm db-4.5.20.tar.gz
rm -rf db-4.5.20
rm neon-0.25.5.tar.gz
rm -rf neon-0.25.5
rm subversion-1.4.6.tar.gz
rm -rf subversion-1.4.6
And you're done!
The full script if you're lazy:
Code:
#!/usr/bin/bash
cd
wget http://download.oracle.com/berkeley-db/db-4.5.20.tar.gz
tar -zxvf db-4.5.20.tar.gz
cd db-4.5.20/build_unix
../dist/configure --prefix=$HOME/usr
make -j8
make install
cd
wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
tar -zxvf neon-0.25.5.tar.gz
cd neon-0.25.5
./configure --prefix=$HOME/usr --with-ssl=openssl
make -j8
make install
echo "export PATH=\$PATH:\$HOME/usr/bin" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/usr/lib" >> ~/.bashrc
source ~/.bashrc
cd
wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
tar -zxvf subversion-1.4.6.tar.gz
cd subversion-1.4.6
### Included from earlier post in this thread
wget http://apache.karegen.com/apr/apr-1.2.12.tar.bz2
tar -jxvf apr-1.2.12.tar.bz2
mv apr-1.2.12 apr
cd apr
./buildconf
./configure --prefix=$HOME/usr
make -j8
make install
cd ..
wget http://apache.karegen.com/apr/apr-util-1.2.12.tar.bz2
tar -jxvf apr-util-1.2.12.tar.bz2
mv apr-util-1.2.12 apr-util
cd apr-util
./buildconf
./configure --with-apr=$HOME/usr/bin/apr-1-config --prefix=$HOME/usr
make -j8
make install
cd ..
./configure --disable-shared --prefix=$HOME/usr --with-berkeley-db=$HOME/usr --with-neon=$HOME/usr
make -j8
make install
cd
rm db-4.5.20.tar.gz
rm -rf db-4.5.20
rm neon-0.25.5.tar.gz
rm -rf neon-0.25.5
rm subversion-1.4.6.tar.gz
rm -rf subversion-1.4.6
Copy-paste to ~/install_svn.sh, then do:
Code:
chmod +x ~/install_svn.sh
~/install_svn.sh
And the magic starts!
You're left with a ~70MB ~/usr dir and a fully working copy of Subversion.
I redid this turorial because I needed WebDAV access (svn:externals).
Good luck!