linux下svn安裝

一、安裝apr 

  1. wget http://mirror.bit.edu.cn/apache//apr/apr-1.5.2.tar.gz

  2. tar -zxvf apr-1.5.2.tar.gz

  3. cd apr-1.5.2

  4. ./configure --prefix=/usr/local/apr

  5. make && make install

  6. /usr/local/apr/bin/apr-1-config --version     //驗證安裝

二、安裝apr-util

  1. wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.5.4.tar.gz 

  2. tar -zxvf apr-util-1.5.4.tar.gz

  3. cd apr-util-1.5.4

  4. ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

  5. make && make install

  6. /usr/local/apr-util/bin/apu-1-config --version   //驗證安裝

三、安裝pcre

  1. ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz

  2. tar -zxvf pcre-8.39.tar.gz

  3. cd pcre-8.39

  4. ./configure --prefix=/usr/local/pcre

  5. make && make install

四、安裝openssl及openssl-devel

  1. wget http://www.openssl.org/source/openssl-1.1.0c.tar.gz 

  2. tar -zxvf openssl-1.1.0c.tar.gz

  3. cd openssl-1.1.0c

  4. ./config --prefix=/usr/local/openssl

  5. make && make install

  6. yum install openssl-devel -y

五、安裝apache

  1. wget http://apache.dataguru.cn/httpd/httpd-2.4.23.tar.gz 

  2. tar -zxvf httpd-2.4.23.tar.gz

  3. cd httpd-2.4.23

  4. ./configure --prefix=/usr/local/apache --enable-so --enable-dav --enable-dav-fs --enable-ssl --enable-maintainer-mode --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-opanssl

  5. maek && make install

六、安裝zlib

  1. wget http://zlib.net/zlib-1.2.8.tar.gz

  2. tar -zxvf zlib-1.2.8.tar.gz

  3. cd zlib-1.2.8

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

  5. make && make install

七、安裝sqlite

  1.  wget http://sqlite.org/2013/sqlite-autoconf-3150200.tar.gz

  2. tar -zxvf sqlite-autoconf-3150200.tar.gz

  3. cd sqlite-autoconf-3150200

  4. ./configure --prefix=/usr/local/sqlite

  5. make && make install

八、安裝subversion

  1.  wget http://mirrors.cnnic.cn/apache/subversion/subversion-1.8.17.tar.bz2

  2. tar -jxvf subversion-1.8.17.tar.bz2

  3. cd subversion-1.8.17

  4. ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-openssl --with-zlib=/usr/local/zlib --enable-maintainer-mode --with-sqlite=/usr/local/sqlite

  5. make && make install

  6. /opt/svn/subversion/bin/svnserve --version    //驗證安裝



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章