`

Linux SVN server -install

阅读更多

download
1. Apache 2.0.59(http://archive.apache.org/dist/httpd/httpd-2.0.59.tar.gz
2. Openssl 0.9.8e(http://www.openssl.org/source/openssl-0.9.8e.tar.gz
3. Subversion 1.4.3(http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz
NOTE: save /home/leo/Downloads/svn  can be changed to any url

gedit a file name is svn_install.sh
1.copy the following codes into svn_install.sh
2.chmod 777 svn_install.sh
3.sudo ./svn_install.sh

#!/bin/sh
export SRC_HOME="/home/leo/Downloads/svn"
export APACHE_VERSION="2.0.59"
export APACHE_HOME="/home/leo/svn/apache2"
export OPEN_SSL_DIR="/home/leo/Downloads/svn/open_ssl_dir"
export OPEN_SSL_VERSION="0.9.8e"
export SUBVERSION_VERSION="1.4.3"
 
echo ">> Install open_ssl"
cd ${SRC_HOME}
tar xvzf openssl-${OPEN_SSL_VERSION}.tar.gz
cd openssl-${OPEN_SSL_VERSION}
./config --prefix=${SRC_HOME} --openssldir=${OPEN_SSL_DIR}
make
make install
 
echo ">> Install Apache2"
cd ${SRC_HOME}
tar zxf httpd-${APACHE_VERSION}.tar.gz
cd httpd-${APACHE_VERSION}
./configure --prefix=${APACHE_HOME} --enable-suexec \
--enable-so --with-suexec-caller=bin \
--enable-ssl --with-ssl=${OPEN_SSL_DIR} --enable-cache \
--enable-ext-filter --with-z=/usr/include --enable-dav \
--with-layout=Apache --enable-headers=shared \
--enable-auth --enable-alias --enable-so --enable-proxy=shared \
--enable-proxy-http=shared --enable-rewrite=shared --enable-deflate=shared
make
make install
 
echo ">> Install SVN"
cd ${SRC_HOME}
tar zxf subversion-${SUBVERSION_VERSION}.tar.gz
cd subversion-${SUBVERSION_VERSION}
./configure --prefix=/home/svn/subversion-${SUBVERSION_VERSION} \
--with-zlib \
--with-apr=${APACHE_HOME} \
--with-apr-util=${APACHE_HOME} \
--with-apxs=${APACHE_HOME}/bin/apxs
make
make install

 

you might get the following trouble:

1.zlib library... not found

 

intall zlib

can try apt-get install zlib1g-dev  

or 
1.download http://linux.softpedia.com/progDownload/zlib-Download-159.html
2.gedit a file name is zlib_install.sh
3.copy the following codes into zlib_install.sh
4.chmod 777 zlib_install.sh 
5.sudo ./zlib_install.sh

#!/bin/sh
export SRC_HOME="/home/leo/Downloads/svn"
export ZLIB_VERSION="1.2.5"

echo ">> Install zlib"
cd ${SRC_HOME}
tar -xjf zlib-${ZLIB_VERSION}.tar.bz2
cd zlib-${ZLIB_VERSION}
./configure -h
make clean
./configure --shared
make test
make install
cp zutil.h /usr/local/include
cp zutil.c /usr/local/include

mkdir /usr/local/zlib
./configure --prefix=/usr/local/zlib

2.OpenSSL headers not found

try to apt-get   install   libssl-dev

 


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics