Installation of SVN under Linux __linux

Source: Internet
Author: User
Tags sqlite svn

1. Download SVN installation files

Current Latest: Subversion-1.7.5.tar.gz

Download Address: Http://subversion.apache.org/download

2. Create SVN installation directory

Mkdir/u01/svnapp

3. Upload files to the server decompression, installation

The decompression command is: Tar xfvz subversion-1.7.5.tar.gz

After decompression, generate subversion-1.7.5 subdirectories, enter the directory

Perform

./configure--PREFIX=/U01/SVNAPP/SVN

The following error occurred:

Tips for missing Apr and apr-util and need to download and install

Download Address:

http://apache.etoak.com/apr/#mirrors

Download the latest Apr and Apr-util, currently the latest for

Apr-1.4.6.tar.gz

Apr-util-1.4.1.tar.gz

4. Install Apr

1, upload and extract the APR

Tar xfvz apr-1.4.6.tar.gz

2, into the directory to extract the directory in order to execute:

./configure--PREFIX=/U01/SVNAPP/APR

Make

Make Test

Make install

Apr installation Complete

5. Install Apr-util

1, upload and decompression apr-util

Tar xfvz apr-util-1.4.1.tar.gz

2, into the directory to extract the directory in order to execute:

./configure--PREFIX=/U01/SVNAPP/APR-UTIL--WITH-APR=/U01/SVNAPP/APR

Make

Make Test

Make install

Apr-util Installation Completed

6. Continue to install SVN

Enter SVN extract directory, execute:

./configure--PREFIX=/U01/SVNAPP/SUBVERSION--WITH-APR=/U01/SVNAPP/APR--with-apr-util=/u01/svnapp/apr-util

Prompt for an error:

Need to install SQLite

7. Install SQLite

Download Address: http://www.sqlite.org/download.html

Download the latest installation package, currently the latest for sqlite-autoconf-3071300.tar.gz

1, Upload decompression:

Tar xfvz sqlite-autoconf-3071300.tar.gz

2, into the Decompression directory installation:

CD sqlite-autoconf-3071300

./configure--prefix=/u01/svnapp/sqlite

Make

Make install

Apr-util Installation Completed

8. Continue to install SVN

Enter SVN extract directory, execute:

./configure--PREFIX=/U01/SVNAPP/SUBVERSION--WITH-APR=/U01/SVNAPP/APR--with-apr-util=/u01/svnapp/apr-util-- With-sqlite=/u01/svnapp/sqlite

Prompt for an error:

Installation needs zlib, continue downloading zlib

9. Install Zlib

Download Address: http://www.zlib.net

Download the latest installation package: Currently the latest for zlib-1.2.5.1.tar.gz

1, upload and decompression

Tar xfvz zlib-1.2.5.1.tar.gz

2, into the Decompression directory installation:

CD zlib-1.2.5.1

./configure--prefix=/u01/svnapp/zlib

Make

Make install

Zlib installation Completed

10. Continue to install SVN

Enter SVN extract directory, execute:

./configure--PREFIX=/U01/SVNAPP/SUBVERSION--WITH-APR=/U01/SVNAPP/APR--with-apr-util=/u01/svnapp/apr-util-- With-sqlite=/u01/svnapp/sqlite–with-zlib=/u01/svnapp/zlib

Tips:

Here we use the Fsfs method, so do not install DB, ignore.

Go on:

Make

If the 64-bit operating system will receive an error:

Into the zlib extract directory

Perform:

Cflags= "-o3-fpic"./configure--prefix=/u01/svnapp/zlib

Make

Make install

To continue the installation:

./configure--PREFIX=/U01/SVNAPP/SUBVERSION--WITH-APR=/U01/SVNAPP/APR--with-apr-util=/u01/svnapp/apr-util-- With-sqlite=/u01/svnapp/sqlite–with-zlib=/u01/svnapp/zlib

Make

Make install

11. Join SVN path

Vi/etc/profile

On the last side of the file add

Path=/u01/svnapp/subversion/bin: $PATH

Export path

Exit execution
. /etc/profile

Test if SVN is installed successfully, execute:
Svnserve--version

If version information is displayed, the installation succeeds.

These are the steps for installing the SVN server on Linux.

Related Article

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.