专注于数据库技术研究和实践,目前就职于互联网金融企业,提供Oracle数据库技术支持和维护。 联系电话:18616803656
分类: LINUX
2010-05-22 13:54:49
本来打算用Apache 2.2.14的,可以安装成功,但是在和SVN集成的时候出了点错误(libsvn_subr-1.so.0: undefined symbol: apr_hash_clear),没找到解决办法,所以继续使用Apache 2.2.8.
I. Install Environment and Software Version
1. Centos 5.4
2.
3.
4.
5.
6.
7.
1. Install BDB 4.4.20
tar zxf db-4.4.20.tar.gz
cd db-4.4.20/build_unix/
../dist/configure
make
make install
2. Install openldap-2.4.21
tar zxf openldap-2.4.21.tgz
cd openldap-2.4.21
CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib" LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.4/lib" ./configure -prefix=/usr/local/openldap -enable-ldbm
make depend
make
make test
make install
3. Install Zlib
tar xjf subversion-deps-1.6.9.tar.bz2
tar xjf subversion-1.6.9.tar.bz2
cd subversion-1.6.9/zlib
CFLAGS="-O3 -fPIC" ./configure
make
make install
4. Install openssl-1.0.2
tar zxf openssl-1.0.2.tar.gz
cd openssl-1.0.2
./config --prefix=/usr/local/openssl zlib
make
make install
5. Install Apr,Apr-til
tar xjf httpd-2.2.8.tar.bz2
cd httpd-2.2.8/srclib/apr
./configure --prefix=/usr/local/apache2/apr --with-berkeley-db=/usr/local/BerkeleyDB.4.4
make
make install
cd ../apr-util
./configure --prefix=/usr/local/apache2/apr-util --with-apr=/usr/local/apache2/apr --with-ldap --with-ldap-include=/usr/local/openldap/include/ --with-ldap-lib=/usr/local/openldap/lib --with-berkeley-db=/usr/local/BerkeleyDB.4.4 LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.4/lib"
make
make install
6. Install Neon
cd subversion-1.6.9/neon
./configure --with-apr=/usr/local/apache2/apr --with-ssl --with-libs=/usr/local/openssl
make
make install
这里安装可能会报个错:error: could not find library containing RSA_new
需要安装: yum install openssl-devel expat-devel libxml2-devel
7. Install Apache 2.2.8
cd httpd-2.2.8
./buildconf
./configure -enable-lib64 -libdir=/usr/lib64 --prefix=/usr/local/apache2 --with-apr=/usr/local/apache2/apr --with-apr-util=/usr/local/apache2/apr-util --enable-so --enable-dav --enable-dav-fs --enable-dav-lock --enable-ldap --enable-authnz-ldap --enable-mods-shared=most --enable-ssl --enable-module=shared --enable-maintainer-mode
make
make install
8. Install Subversion 1.6.9
cd subversion-1.6.9
./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2/apr/bin/apr-1-config --with-apr-util=/usr/local/apache2/apr-util/bin/apu-1-config --with-ssl --with-berkeley-db LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.4/lib"
make
make install
安装就大功告成了,后面就是从SVN 1.4.6迁移到1.6.9的事情了,继续!