Use subversion to build SVN and subversion to build svn

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.