SVN

相关文摘

apache:http://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.2.23.tar.gz
apr-util:http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.5.1.tar.gz
apr:http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.4.6.tar.gz
openssl:http://openssl.org/source/openssl-1.0.1c.tar.gz
subversion:http://www.fayea.com/apache-mirror/subversion/subversion-1.7.7.tar.gz
sqlite:http://sqlite.org/sqlite-autoconf-3071401.tar.gz
neon:http://www.webdav.org/neon/neon-0.29.6.tar.gz
expat(2.1.0) :http://sourceforge.net/project/showfiles.php?group_id=10127
pcre(8.36) : http://sourceforge.net/projects/pcre/files/pcre/8.36/
zlib(zlib-1.2.8.tar.gz):http://zlib.net/

我的github下包括所有下载文件:

SVN安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
* STEP01 安装apr
shell# tar -zxvf apr-1.4.6.tar.gz
shell# cd apr-1.4.6/
shell# ./configure --prefix=/home/svn/apps/apr
shell# make && make install
* STEP02 安装apr-util
shell# tar -zxvf apr-util-1.5.1.tar.gz
shell# cd apr-util-1.5.1/
shell# ./configure --prefix=/home/svn/apps/apr-util --with-apr=/home/svn/apps/apr/
shell# make & make install
* STEP03 安装SQLite
shell# tar -zxvf sqlite-autoconf-3071401.tar.gz
shell# cd sqlite-autoconf-3071401/
shell# ./configure --prefix=/home/svn/apps/sqlite
shell# make && make install
* STEP04 安装openssl
shell# tar -zxvf openssl-1.0.1c.tar.gz
shell# cd openssl-1.0.1c/
shell# ./config --prefix=/home/svn/apps/ssl shared
shell# make && make install
* STEP05 安装expat
cd /usr/local
tar -xvzf expat2.tar.gz
cd expat2
./configure
make
make install
* STEP06 安装neon
shell# tar -zxvf neon-0.29.6.tar.gz
shell# cd neon-0.29.6/
shell# ./configure --prefix=/home/svn/apps/neon --with-ssl --with-libs=/home/svn/apps/ssl --enable-shared
shell# make && make install
* STEP07 安装zlib
cd /usr/local
tar -xvzf zlib-1.2.5.tar.gz
cd zlib-1.2.5
./configure
make
make install
* STEP08 安装gcc
yum install -y gcc-c++
* STEP09 安装pcre
#unzip -o pcre-8.10.zip
#cd pcre-8.10
#./configure --prefix=/usr/local/pcre
#make
#make install
* STEP10 安装Apache(httpd)
hell# tar -zxvf httpd-2.2.23.tar.gz
shell# cd httpd-2.2.23
shell#
./configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-included-apr
--enable-modules=so --enable-dav --enable-maintainer-mode --enable-rewrite
需要apr重命为apr不要带版本号和apr-utils也是一样,一定要使用没有编译过的源码包,并解压到, Apache的./srclib/ 目录下, 再进行编译
shell# make & make install
[root@getlnx05 conf]# vi httpd.conf
编辑httpd.conf配置文件,添加SeraverName的具体IP地址。如下所示
ServerName 192.168.9.122:80
启动:
[root@getlnx05 conf]# /usr/local/apache/bin/apachectl restart
* STEP11安装SVN
shell# tar -zxvf subversion-1.7.7.tar.gz
shell# cd subversion-1.7.7
shell# ./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-ssl=/usr/local/ssl --with-sqlite=/usr/local/sqlite --with-apxs=/usr/local/apache/bin/apxs --with-neon=/usr/local/neon --with-openssl
make
shell# make & make install
* 验证是否安装成功
[root@localhost develop]# /usr/local/svn/bin/svnserve --version
* STEP12 SVN+Apache
#cp /usr/local/svn/libexec/mod_dav_svn.so /usr/local/apache/modules/
#cp /usr/local/svn/libexec/mod_authz_svn.so /usr/local/apache/modules/
#vi /usr/local/apache/conf/httpd.conf
配置 Apache的vi /usr/local/apache/conf/httpd.conf 文件
1.修改User和Group为donie账号启动
User donie
Group donie
2. 把下面两个行前面的#号去掉,注意行前不能有空格:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
3. 在模块加载的最后添加下面两句:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
* STEP13 SVN版本库创建
1. 创建文件夹
$ mkdir /etc/svn/
$ mkdir /etc/svn/repos
$ svnadmin create /etc/svn/repos
2. 配置 Apache的vi /usr/local/apache/conf/httpd.conf 文件,在最后增加
<Location /repos>
DAV svn
SVNPath /etc/svn/repos
</Location>
3. 启动
[root@getlnx05 conf]# /usr/local/apache/bin/apachectl restart

/*参考文章*/
SVN安装

http://www.cnblogs.com/motadou/archive/2012/07/01/2572075.html

http://www.cnblogs.com/qinwanlin/archive/2012/12/03/2797339.html

http://hanqunfeng.iteye.com/blog/688295

http://www.zihou.me/html/2011/05/04/3899.html

创建SVN库

http://blog.csdn.net/wwww1988600/article/details/24182919

SVN+apache整合

http://www.cnblogs.com/wwl1991/p/3752696.html

SVN+apache IMB(sucess) 注意创建仓库不能使用root用户,不然只能读不能写

https://www.ibm.com/developerworks/cn/java/j-lo-apache-subversion/

SVN安装错误问题收集

SVN安装

http://www.cnblogs.com/motadou/archive/2012/07/01/2572075.html

http://www.cnblogs.com/qinwanlin/archive/2012/12/03/2797339.html

http://hanqunfeng.iteye.com/blog/688295

http://www.zihou.me/html/2011/05/04/3899.html

STEP05 安装neon之前需要安装

  1. expat

    configure配置SVN时可能提示如下错误信息:

configure: error: no XML parser was found: expat or libxml 2.x required

错误提示需要安装expat

下载expat :http://sourceforge.net/project/showfiles.php?group_id=10127

下载:http://sourceforge.net/projects/expat/files/expat/2.1.0/

cd /usr/local

tar -xvzf expat2.tar.gz

cd expat2

./configure

make

make install

/apache/httpd/

下载:http://mirrors.tuna.tsinghua.edu.cn/apache/httpd/

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

下载:http://sourceforge.net/projects/pcre/files/pcre/8.36/

#unzip -o pcre-8.10.zip

#cd pcre-8.10

#./configure –prefix=/usr/local/pcre

#make

#make install

继续安装Apache/httpd,./configure 时加上参数

–with-apr=/usr/local/apr/ –with-apr-util=/usr/local/apr-util/ –with-pcre=/usr/local/pcre,这个问题就解决了

./configure –prefix=/usr/local/apache –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util –with-pcre=/usr/local/pcre –with-ssl=/usr/local/ssl –enable-dav –enable-so –enable-ssl –enable-rewrite

安装pcre-8.10错误:

configure: error: You need a C++ compiler for C++ support.

安装gcc

–yum install -y gcc gcc-c++

yum install -y gcc-c++

Linux系统安装Apache 2.4.6

./configure –prefix=/usr/local/apache –with-pcre=/usr/local/pcre –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util –with-included-apr

–enable-modules=so –enable-dav –enable-maintainer-mode –enable-rewrite

安装Apache 2.4.6错误

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

需要下载apr和apr-utils一定要使用没有编译过的源码包,并解压到, Apache的./srclib/ 目录下, 再进行编译。

http://www.cnblogs.com/kerrycode/p/3261101.html

http://www.cnblogs.com/JemBai/archive/2012/11/07/2759139.html

安装Apache 2.4.6错误

AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message

[root@getlnx05 conf]# vi httpd.conf

编辑httpd.conf配置文件,添加SeraverName的具体IP地址。如下所示

ServerName 192.168.9.122:80

[root@getlnx05 conf]# /usr/local/apache/bin/apachectl restart

下载zlb:http://zlib.net/

cd /usr/local

tar -xvzf zlib-1.2.5.tar.gz

cd zlib-1.2.5

./configure

make

make install

SVN安装

./configure –prefix=/usr/local/svn –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util –with-ssl=/usr/local/ssl –with-sqlite=/usr/local/sqlite –with-apxs=/usr/local/apache/bin/apxs –with-neon=/usr/local/neon –with-openssl

make

make install

验证是否安装成功

[root@localhost develop]# /usr/local/svn/bin/svnserve –version

创建SVN库

http://blog.csdn.net/wwww1988600/article/details/24182919

SVN+apache

http://www.cnblogs.com/wwl1991/p/3752696.html

SVN+apache IMB(sucess) 注意创建仓库不能使用root用户,不然只能读不能写

https://www.ibm.com/developerworks/cn/java/j-lo-apache-subversion/

Svnmanager图形管理工具

windows 7 SVN服务器端口:8443

[donie@localhost subversion-1.6.1]$ ./configure –with-openssl=/usr/local/ssl –with-zlib=/usr/local/zlib -without-serf -enable-maintainer-mode
svn –version
[root@localhost subversion-1.6.1] echo “export PATH=$PATH:/usr/local/svn/bin/“>>/etc/profile
[root@localhost subversion-1.6.1]source /etc/profile
[root@localhost subversion-1.6.1]# mkdir -p /opt/svn/
[root@localhost subversion-1.6.1]# mkdir -p /opt/svn/svntest/
[root@localhost subversion-1.6.1]# svnadmin create /opt/svn/svntest/
[root@localhost subversion-1.6.1]# cd /opt/svn/svntest/conf/
[root@localhost conf]# ll
[root@localhost conf]# vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
[root@localhost conf]# vi authz
[svntest:/]
lipeng=rw
[root@localhost conf]# vi passwd
lipeng = 123456
[root@localhost conf]# svnserve -d -r /opt/svn/
加端口号启动 svnserve -d –listen-port 9999 -r /opt/svn/
停止:killall svnserve
[root@localhost conf]# netstat -tunlp | grep svn
svn checkout svn://192.168.1.97/svntest
3690默认端口

SVN Linux客户端使用
http://www.centoscn.com/CentosServer/ftp/2014/0202/2409.html
Apache
http://blog.csdn.net/zhangskd/article/details/7666197
参考文章
http://www.douban.com/note/275224818/
http://www.zihou.me/html/2011/05/04/3899.html
http://hanqunfeng.iteye.com/blog/688295
http://www.cnblogs.com/qinwanlin/archive/2012/12/03/2797339.html
http://www.cnblogs.com/motadou/archive/2012/07/01/2572075.html

文章目录
  1. 1. 相关文摘
  2. 2. SVN安装
  3. 3. SVN安装错误问题收集
  4. 4. Svnmanager图形管理工具
,