1.SVN Installation
Ubuntu system Installation: sudo apt-get install subversion
SOURCE installation: 1. Download:archive.apache.org/dist/subversion
2. Unzip: Tar xvf subversion-0.19.1.tar.gz
3. Move: sudo mv subversion-0.19.1/usr/svn
4. Enter:/USR/SVN, configuration:./configure--prefix=/usr/svn
5. Compiling: Make
6. Install: Make install
7. Set environment variables: Vi/etc/profile join: Export path=/usr/svn/bin: $PATH
8. Test: Svn-h
Installation packages that may be dependent on:
GCC (gcc/c++.x86_64)
Apr (apr-devel.x86_64)
Apr-util (apr-util-devel.x86_64)
SQLite (sqlite-devel.x86_64)
Zlib (zlib-devel.x86_64)
Compile, error occurred
MAKE[2]: Entering directory '/usr/svn/apr/network_io/unix '
MAKE[3]: Entering directory '/usr/svn/apr/network_io/unix '
/bin/bash/usr/svn/apr/libtool--silent--mode=compile gcc-g-o2-pthread-dhave_config_h-d_reentrant-d_gnu_source-i. ./.. /include-i. /.. /include/arch/unix-i. /.. /include/arch/unix-c sockopt.c && Touch Sockopt.lo
sockopt.c:in function ' Apr_socket_opt_set ':
Sockopt.c:242:27:error: ' Sctp_nodelay ' undeclared (first use of this function)
Optname = Sctp_nodelay;
^
Sockopt.c:242:27:note:each undeclared identifier is reported only once for each function it appears in
MAKE[3]: * * * [Sockopt.lo] Error 1
MAKE[3]: Leaving directory '/usr/svn/apr/network_io/unix '
MAKE[2]: * * * [all-recursive] Error 1
MAKE[2]: Leaving directory '/usr/svn/apr/network_io/unix '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving directory '/USR/SVN/APR '
Make: * * * [External-all] Error 1
2.SVN Warehouse creation and configuration
1. Build Repository directory: Mkdir-p/usr/svn/svndata
2. Build repository: Svnadmin CREATE/USR/SVNDATA/REPO1
Automatically add the required configuration file under the Repos directory after executing this command
Conf db format Hooks Locks README.txt
Four configuration files in conf: Authz Hooks-env.tmpl passwd svnserve.conf
3. Multi-project multi-warehouse management
Install SVN under Linux, Warehouse creation, user Rights Management