Build Svnserver in Linux

Source: Internet
Author: User
Tags xml parser

Download tool

1. subversion-1.6.17.tar.gz2. Subversion-deps-1.6.17.tar.gz

Two decompression of two packs:

1. Prior to this, I have created a user svnroot specifically used to install management SVN, just unzip it under the/home/root/folder

TAR-XZVF  SUBVERSION-1.6.17.TAR.GZTAR-XZVF  subversion-deps-1.6.17.tar.gz

2. Compiling the installation

./configure--prefix=/home/svnroot/subversion  --without-berkeley-db//prefix Specify the folder to install, WITHOUT-BERKELEY-DB indicates that the Berkeley database is not used//In this step may not succeed, is due to a number of dependent software is not installed, see in detail the following "problems encountered" Makemake install

3. Adding environment Variables

Ability to add Exprot path= $PATH in/etc/profile:/home/svnroot/subversion/bin4. To see if the installation was successful/home/svnroot/subversion/bin/svnserve --version//assumes that the SVN version number shows the successful installation

Build the warehouse in three

1. Create a folder

mkdir  -P/home/svnroot/svndata/repos1 plus the reference p, it is assumed that there is no parent folder to create their own initiative note:/home/svnroot/svndata here will be the root folder of all warehouses, REPOS1 is one of the warehouses.

2. Create a warehouse

Svnadmin Create  /HOME/SVNROOT/SVNDATA/REPOS1 here uses SVN to build repos1 as a repository. A series of configuration files for the REPOS1 warehouse will be generated in the REPOS1 directory.

Four configuration warehouses

1. View the files after the warehouse is created

Enter/svndata/repos1/conf, you will find a few configuration files

2. Change svnserve.conf

VI svnserve.conf Open This configuration file, you can see a lot of configuration items have been staring, just need to follow these changes will be able to [general]anon-access = Noneauth-access = writepassword-db = Passwdauthz-db=authz

3. Folder control file Authz (or called permission control file)

VI authz default is not configured, to participate in the following demo sample to configure [groups]admin = svnadmin[repos1:/] @admin = rwsvnadmin = RW above the configuration permissions control file configuration format such as the following: [Groups] < user group name > = < user 1>,< user 2> [< version number library >:/project/folder]@< user Group name > = < Permissions ><username> = < permissions >, the box number can be written in several ways:/, the root folder and the following. The root folder is specified at svnserve startup and we specify/home/svnadmin/svndata. This means that the permissions are set for all version number libraries. repos1:/, which is set to the version number library 1, sets the permission Repos2:/occi, which represents the set permissions REPOS2:/OCCI/AAA for the OCCI project in version number library 2, which indicates that the AAA folder of the OCCI project in version number 2 is set to the permissions permission principal to be a user group, User or *, user group in front plus @,* represents the utility. Permissions can be W, R, WR, and NULL, and NULL means no permissions whatsoever.

4. Change user password file passwd

VI passwd Default is also no configuration, no matter what the user, you can use the following configuration demo sample configuration [users]svnadmin = 123456 user Password configuration format:[users]< User 1> = <password1> < user 2> = <password2> Note: Here the configuration file, in addition to staring at each line must be top line, or else will be error.

Five start svn

Svnserve-d-r/home/svnadmin/svndata-d is executed in the background,-R means ... Note: This is/home/svnadmin/svndata, not/home/svnadmin/svndata/repos1. This is the command that SVN makes all the repository root folders effective, not a warehouse. It must be noted here.

Six basic test

SVN co svn://192.168.6.74/repos1checkout, will require input Usernamepassword, only configured user talent verification through

Summary of issues:

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

Error message required to install expat (download expat2.tar.gz) cd/usr/localtar-xvzf expat2.tar.gzcd expat2./configuremakemake Install

2.configure:error:we require OpenSSL; Try--with-openssl

3.configure:error:subversion requires zlib

Error message required to install zlib download ZLB:HTTP://ZLIB.NET/CD/USR/LOCALTAR-XVZF zlib-1.2.5.tar.gzcd zlib-1.2.5./configuremakemake Install

4.svn Checkout https://xxx.xxx.xxx/

Svn:ssl was not supported looked up from the internet and said it was running./configure to add--with-ssl./configure--with-openssl=/usr/local/ssl--with-zlib =/usr/local/zlib--with-ssl--with-libs=/usr/local/ssl

Build Svnserver in Linux

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.