Linux source file compilation and installation of SVN (Subversion)

Source: Internet
Author: User
I. download two source files: http://subversion.tigris.org/downloads/subversion

1. download two source files:
Http://subversion.tigris.org/downloads/subversion-1.6.17.tar.gz
Http://subversion.tigris.org/downloads/subversion-deps-1.6.17.tar.gz
In versions later than 1.7, the official version no longer provides dependency package downloads.

2. Upload the above two files to the server and decompress them. Decompress the command:

Tar xfvz subversion-1.6.17.tar.gz
Tar xfvz subversion-deps-1.6.17.tar.gz

Command Introduction: tar is the extract command, and xfvzis the marker of the tar command, used to extract files compressed in the tar.gz format.

3. decompress the package and generate the subversion-1.6.17 subdirectory. after the two packages are decompressed, they will be automatically placed in this directory without manual modification.

4. go to the unzip subdirectory:

Cd subversion-1.6.17

5. run./configure -- prefix =/opt/subversion to configure and specify the installation directory. Note that there are two minus signs before prefix.

In this process, you also need to check whether gcc and openssl are installed in the system. for details, refer

Http://www.joyphper.net/article/201206/gcc-rpm-install.html

Http://www.joyphper.net/article/201206/rpm-openssl-devel-install.html

6. execute make compilation.

7. execute make install.

8. add environment variables:

Vi/etc/profile

Add at the end of the file:

SVNPATH = $ PATH:/opt/subversion/bin

Export SVNPATH

9. run the following command to test whether SVN is successfully installed:

Svnserve -- version

If the version information is displayed, the installation is successful.

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.