Use subversion to build SVN and subversion to build svn
The software packages required to build SVN using subversion include subversion, apr, apr-util, sqlite, zlib, this is because the installation path of apr, apr-util, sqlite, and zlib must be specified during compilation and installation of subversion, therefore, we recommend that you use the source code to install apr, apr-util, sqlite, and zlib, and specify the installation location during compilation.
To download the subversion, apr, apr-util, sqlite, and zlib packages, you can use the "wget <URL>" method, or download the software package from your local computer, use the "rz" command (the server needs to install lrzsz) to upload the compressed package to the server.
1. Install apr
Tar xf decompress the apr package and cd to the decompressed folder
./Configure -- prefix =/opt/apr configure and set the installation path
Make & make install
Ii. Install apr-util
Tar xf decompress the apr-util package and cd to enter the decompressed folder.
./Configure -- prefix =/opt/apr-util -- with-apr =/opt/apr
Make & make install
Iii. Install sqlite
Tar xf decompress the sqlite package and cd to the decompressed folder
./Configure -- prefix =/opt/sqlite to set the installation path
Make & make install
4. Install zlib
Tar xf decompress the zlib package and cd to the decompressed folder
./Configure -- prefix =/opt/zlib
Make & make install
V. Install svn
Tar xf decompress the subversion package and cd to the decompressed folder
. /Configure -- prefix =/opt/svn -- with-apr =/opt/apr -- with-apr-util =/opt/apr-util -- with-sqlite =/opt/sqlite -- with-zlib =/opt/zlib
Make & make install
6. Set Environment Variables
Vim/etc/profile
Add the following content at the end:
Export PATH =/opt/software/svn/bin: $ PATH
Effective immediately source/etc/profile
7. test whether the installation is successful
Svnserve -- version
8. Create a warehouse
Mkdir-p/var/svnroot
Cd/var/svnroot
Svnadmin create test
Cd test/conf
9. Configure svnserve. conf
Vim svnserve. conf
Remove annotator #
Anon-access = none
Auth-access = write
Password-db = passwd specifies the location of the user name and password file
Authzauthz-db = authz specifies the location of the permission configuration file
10. Set Access Permissions
Vim passwd
Add (username = PASSWORD)
User = password
[Groups]
User Group name = user 1, user 2
[Version Library:/directory]
@ User group name = permission rw
User name = permission rw
11. Run SVN and port 3690 is used by default.
Svnserve-d-r/var/svnroot
12. Check whether svn is running
Ps-ef | grep svnserve