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.