My operating system is RedHatEnterpriseLinuxASrelease4 (NahantUpdate3). you need to install the svn client to obtain the code from the code server. the installed version is 165 to be consistent with the version on other servers. The maximum version for writing text is 185. 1,
My operating system is Red Hat Enterprise Linux AS release 4 (Nahant Update 3). you need to install the svn client to obtain the code from the code server. the installed version is 1.6.5, to be consistent with the version on other servers. When writing text, the maximum version is 1.8.5.
1. Download The subversion source code.
Download from his ftp and various versions have http://archive.apache.org/dist/subversion/
Download and unzip: tar zxf subversion-1.6.5.tar.gz
2. View installation instructions
Go to the decompressed Directory: cd subversion-1.6.5
INSTALL vim INSTALL
Focus on the Dependency Overview section and check which third-party libraries are required. optional is optional. you can see that:
Required: apr (Apache Portable Runtime), apu (Apache Portable Runtime Util), SQLite, and libz (only important): libneon or libserf, note that either or both of them are openssl3 for the http code library, download or install the necessary third-party library 3.1, download and install apr
Wget http://mirror.esocc.com/apache//apr/apr-1.5.0.tar.gz
Tar zxf apr-1.5.0.tar.gz
Cd apr-1.5.0
./Configure -- prefix =/path/you/want/to/install
Make & make install
3.2 Download and install apr-util
Wget http://mirror.esocc.com/apache//apr/apr-util-1.5.3.tar.gz
Tar zxf apr-util-1.5.3.tar.gz
Cd apr-util-1.5.3
./Configure -- prefix =/path/you/want/to/install -- with-apr =/path/to/installed/apr-1-config
Make & make install
3.3 Download zlib, no installation required
Wget http://zlib.net/zlib-1.2.8.tar.gz
Tar zxf zlib-1.2.8.tar.gz
Move to the source code root directory of subversion:
Mv zlib-1.2.8/path/to/subversion-1.6.5/zlib
3.4 download sqlite-amalgamation 3.6.13
Wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
Tar zxf sqlite-amalgamation-3.6.13.tar.gz
Mv sqlite-amalgamation-3.6.13.tar.gz/path/to/subversion-1.6.5/sqlite-amalgamation
3.5. download and install the libneon-0.28.4
The subversion and neon of this version are better installed than serf. both of them are used to access http and https links, and there are restrictions on libneon version Requirements. 0.28.4 is required.
Wget http://www.webdav.org/neon/neon-0.28.4.tar.gz
Tar zxf neon-0.28.4.tar.gz
Cd neon-0.28.4
./Configure -- with-prefix =/path/you/want/to/install -- with-ssl = openssl -- enable-shared
Make & make install
The following steps are also critical. for details, refer to the description in subversion./configure -- help:
Mv neon-0.28.4/path/to/subversion-1.6.5/neon
3.6 download and install swig
The subversion of this version requires the swig version 1.3.24 ~ 1.3.36, but the 2.0.12 I used does not affect it, but the configuration is reported to warning.
Wget http://prdownloads.sourceforge.net/swig/swig-2.0.12.tar.gz
Tar zxf swig-2.0.12.tar.gz
Cd swig-2.0.12
./Configure -- prefix =/path/to/install
Make & make install
3.7 install subversion after all required components are ready
Cd/path/to/subversion-1.6.5
./Configure -- prefix =/path/to/install/subversion
-- With-apr =/path/to/installed/apr/bin/apr-1-config
-- With-apr-util =/path/to/installed/apr-util/bin/apu-1-config
-- With-ssl // Directory does not need to be written here
-- With-swig =/path/to/installed/swig/bin/swig // swig may have an impact on compilation. compilation fails without configuration.
It should be noted that neon, sqlite, and zlib are all copied to this directory, so they do not need to be specified during configuration. In addition, neon is special:
To be specified during configuration, you can only write it as -- with-neon = PREFIX. PREFIX indicates the directory where you want to install subversion, in addition, the neon-config executable file must be located in the bin directory of this directory. if not specified, in the subversion-1.6.5 Directory, find the neon Source Code Directory (we have already mv it), and neon-config will be in the $ PATH environment variable. You can:
Make & make install
So far, installation is complete!