2012/08/01

Build subversion with apache

  1. build berkeley db
  2. wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
    tar xzf db-5.3.21.tar.gz
    cd db-5.3.21
    cd build_unix
    ../dist/configure --enable-cxx --enable-stl --enable-sql --prefix=$topt

  3. build apr
    wget http://ftp.mirror.tw/pub/apache//apr/apr-1.4.6.tar.gz

  4. build apr-util
    wget http://ftp.mirror.tw/pub/apache//apr/apr-util-1.4.1.tar.gz
    ./configure --prefix=$prefix --with-berkeley-db=$prefix

  5. build openssl
    wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
    ./config shared --prefix=$prefix

  6. build neon
    ./configure --prefix=$prefix --enable-shared --with-ssl=openssl --without-gssapi --with-libs=$prefix

  7. build apache
    ./configure --prefix=$prefix/apache2 --enable-mods-shared=all --with-mpm=prefork --enable-so --enable-digest --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --sysconfdir=$HOME/etc/httpd

  8. build subversion
    ./configure --prefix=$prefix --with-apr=$prefix/bin/apr-1-config --with-apr-util=$prefix/bin/apu-1-config --with-apxs=$prefix/apache2/bin/apxs --with-apache-libexecdir=$prefix/apache2/modules

No comments: