Skip to content

Instantly share code, notes, and snippets.

@guyjin
Created March 14, 2013 20:34
Show Gist options
  • Save guyjin/5164968 to your computer and use it in GitHub Desktop.
Save guyjin/5164968 to your computer and use it in GitHub Desktop.
install Subversion 1.7 to CentOS 5 VM
cd /usr/local/src/
wget http://archive.apache.org/dist/subversion/subversion-1.7.0.tar.gz
tar zxf subversion-1.7.0.tar.gz
If download link don’t work get the correct one from http://subversion.apache.org/download/
#Enter extracted source directory and download apache apr and apr-util before compiling subversion
cd /usr/local/src/subversion-1.7.0
wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz
wget http://rahulsoni.me/files/apr-1.4.5.tar.gz
tar zxf apr-util-1.3.12.tar.gz
tar zxf apr-1.4.5.tar.gz
mv apr-util-1.3.12 apr-util
mv apr-1.4.5 apr
#install zlib
wget http://zlib.net/zlib-1.2.7.tar.gz #version may have changed, check site
tar xvf zlib-1.2.7.tar.gz
mv zlib-1.2.7 zlib
cd zlib
./configure --shared
make
make install
# install newer version of SQLite
cd /usr/local/src/
# check http://www6.atomicorp.com/channels/atomic/centos/5/x86_64/RPMS/ for the latest version.
wget http://www6.atomicorp.com/channels/atomic/centos/5/x86_64/RPMS/atomic-release-1.0-16.el5.art.noarch.rpm
rpm -Uvh atomic-release*rpm
yum install sqlite
#install sqlite-amalgamtion
wget http://www.sqlite.org/sqlite-autoconf-3071502.tar.gz
tar xvg sqlite-autoconf-3071502.tar.gz
mkdir sqlite-amalgamation
cp sqlite-autoconf-3071502/sqlite3.c sqlite-amalgamation/sqlite3.c
cd subversion-1.7.0
./configure CPPFLAGS="-Izlib/ -Lzlib/"
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment