Go Installing the SVN client on Liunx

Source: Internet
Author: User
Tags svn client

Go Installing the SVN client on Liunx


Although it's easy to use Yum to install subversion into the system, the version in the Yum repository is a bit low--1.4.2. So I chose to install it in source code mode. Installing the SVN client tool is much simpler than the NMP configuration, first we download the required source package from the server:

1. wget http://labs.xiaonei.com/apache-mirror/apr/apr-1.3.12.tar.gz
2. wget http://labs.xiaonei.com/apache-mirror/apr/apr-util-1.3.9.tar.gz
3. wget http://www.sqlite.org/sqlite-amalgamation-3.6.19.tar.gz
4. wget http://www.webdav.org/neon/neon-0.29.0.tar.gz
5. Wget http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz


Then continue to extract the source code into the/USR/LOCAL/SRC directory, and compile the installation. It's important to note that Sqllite is a must.

1. Tar zxvf apr-1.3.12.tar.gz-c/usr/local/src/
2. cd/usr/local/src/apr-1.3.9/
3../configure-prefix=/usr/local/apr
4. Make
5. Make install
6. cat/etc/ld.so.conf
7.
8. Tar zxvf apr-util-1.3.9.tar.gz-c/usr/local/src/
9. cd/usr/local/src/apr-util-1.3.9
Ten./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/
One. Make
Make install
Ldconfig-v.
14.
Tar zxvf sqlite-amalgamation-3.6.19.tar.gz-c/usr/local/src/
cd/usr/local/src/sqlite-3.6.19/.
/configure--prefix=/usr/local/sqlite
. Make
. Make Install
20.
Tar zxvf neon-0.29.0.tar.gz-c/usr/local/src/
cd/usr/local/src/neon-0.29.0.
/configure--prefix=/usr/local/neon--enable-shared
. Make
Make install



In order to install SVN, still need to do two operations, or it will compile the failure: the first is to install expat and Expat-devel package, the second is to include the Libiconv library into the system configuration (this seems to be some, but the compilation and installation Lnmp, upgrade iconv this library, But it does not include itself in the system dynamic link library after installation, can only be manually added)

1. Yum Install expat
2. Yum Install Expat-devel
3.
4. vi/etc/ld.so.conf
5. #加入以下内容
6./usr/local/lib
7. #保存退出后运行
8. Ldconfig

Finally compile and install the SVN client

1. TAR-JXVF subversion-1.6.6.tar.bz2-c/usr/local/src/
2. cd/usr/local/src/subversion-1.6.6
3../configure--prefix=/usr/local/svn--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-sqlite= /usr/local/sqlite--with-neon=/usr/local/neon
4. Make
5. Make install


After installation, the SVN bin directory is included in the system environment variable so that it can be accessed from anywhere

1. Export Path=/usr/local/svn/bin: $PATH

Enter SVN--version to check the version. At this point, the SVN under Linux has been installed.

WORKAROUND: Bring the parameter--with-ssl to recompile subversion. Specifically, under Subversion source, use the default method:
./configure--with-ssl
Make
Make install
Finally, remember, to restart Apache, it's OK.

Go Installing the SVN client on Liunx

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.