subversion-1.8.9_安装步骤

2025-04-30

subversion-1.8.9 安装步骤(https://方式)

准备工作

wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz wget https://www.openssl.org/source/openssl-1.0.0k.tar.gz

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.zip wget http://apache.dataguru.cn/httpd/httpd-2.4.9.tar.gz wget http://archive.apache.org/dist/apr/apr-iconv-1.2.1.tar.bz2 wget http://serf.googlecode.com/files/serf-1.3.3.tar.bz2 wget http://zlib.net/zlib-1.2.8.tar.gz

wget www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz

wget http://mirrors.cnnic.cn/apache/subversion/subversion-1.8.9.tar.gz

软件安装

1、安装Apr和Apr-util

#tar -xzvf apr-1.5.1.tar.gz #./configure --prefix=/usr/local/apr # make&&make install

#tar -xzvf apr-util-1.5.3.tar.gz

#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config # make&&make install

2、安装Pcre、openssl 和Apache

#unzip pcre-8.35.zip

#./configure --prefix=/usr/local/pcre # make&&make install

# tar -zxvf openssl-1.0.0k.tar.gz

编译安装openssl,这个软件主要是用来生成证书: #cd openssl-1.0.0k

config arguments for OpenSSL 1.0.1k 5 Jun 2014 were used in this context

问题(/httpd-2.4.9/support/ab.c:2314: undefined reference to `TLSv1_1_client_method\',openssl-1.0.0.tar.gz包有问题,改成openssl-1.0.0k.tar.gz) #./config linux-generic64

#./config -fPIC --prefix=/usr/local/openssl enable-shared #make #make install

如果不行可试一下如下方法 make clean

./config -fPIC --prefix=/usr enable-shared 安装在/usr目录下就省去了链接。

#tar -zxvf httpd-2.4.9.tar.gz

由于mod_perl-2.0.8.tar.gz只支持到httpd-2.2.X # tar zxvf httpd-2.2.27.tar.gz (

error: Size of 解决方法vi configure

if test

as_fn_error $? \\

改为if test

as_fn_error $? \\

config for Apache/2.4.9 (Unix) APR 1.5.1, APR-UTIL 1.5.3 was this context

定义参数:(解决问题 httpd: Syntax error on line 129 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: /usr/local/apache2/modules/mod_ssl.so: undefined symbol: SSL_get_srp_userinfo)

出现错误(undefined symbol: PEM_read_bio_ECPKParameters,说明ssl加载版本有问题,重新输入下参数设定)

#vim /etc/profile

CPPFLAGS=LDFLAGS=

export LD_LIBRARY_PATH=/usr/local/openssl/lib:$LD_LIBRARY_PATH

export HTTPD_HOME=PATH=$PATH:$HTTPD_HOME/bin #source /etc/profile

#ldd /usr/local/apache/modules/mod_ssl.so

#./configure --prefix=/usr/local/apache --enable-so --enable-dav --enable-dav-fs --enable-ssl=static --enable-module=so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-mpm=event --with-ssl=/usr/local/openssl/ $@

# make&&make install 修改http的端口

打开$HTTPD_HOME/conf/httpd.conf文件,找到Listen,后面紧跟的是端口号,默认是80,把它修改为你想设置的端口号即可。

如果不知道Apache的安装目录,可以用locate httpd.conf命令来查找。

修改https的端口

打开$HTTPD_HOME/conf/extra/httpd-ssl.conf文件,把所有的443改成你想设置的端口号。例如,我的文件中有三处: Listen 443

ServerName XXX.XXX.XXX:443。 启动Apache2。

# /usr/local/apache/bin/apachectl start #chkconfig httpd on

文件修改完成后,启动http服务并使用chkconfig命令设置开机自启动

注意:--prefix指定安装目录,注意一定要加--enable-so是核心能够装载DSO和--enable-dav是安装mod_dav_svn.so跟mod_authz_svn.so这两个模块

注:如果缺失--enable-dav,启动apache时会报“httpd: Syntax error on line xxx of

/usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: /usr/local/apache2/modules/mod_dav_svn.so: undefined symbol: dav_register_provider”需要重新编译安装才能解决

如果不能正常启动,出现如下错误:

1、httpd: Syntax error on line .. of /usr/local/apache/conf/httpd.conf: Cannot load

/usr/local/apache/modules/mod_ssl.so into server: /usr/local/apache/modules/mod_ssl.so: cannot restore segment prot after reloc: Permission denied 则执行以下命令后再启动。

chcon -t texrel_shlib_t /usr/local/apache/modules/mod_ssl.so

2、AH00558: httpd: Could not reliably determine the server\'s fully qualified domain name, using 192.168.108.233. Set the \'ServerName\' directive globally to suppress this message

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs

在配置文件里增加 ServerName

/etc/hosts 为这个servername配置ip,如果你没有安装bind等dns服务的话 端口占用

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs


subversion-1.8.9_安装步骤.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:《呼啸山庄》与《原野》的情爱观之比较

相关阅读
本类排行
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 7

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219