Compile and install SVN on CentOS

Source: Internet
Author: User

SVN's Reference URL: http://subversion.apache.org (the SVN resource file can be downloaded from this URL)



Get the appropriate version:

Wget-c http://download.nextag.com/apache/subversion/subversion-1.8.11.tar.gz



Installation process:

TAR-ZXVF subversion-1.8.11.tar.gz


CD subversion-1.8.11/


./configure--help (Take a look at the parameter information)


./configure--prefix=/usr/local/svnup


An error occurred at this point:

Configure:error:no suitable APR found



As if Apr did not, this reference this address: http://apr.apache.org/

We can download these three package installs:

Wget-c http://mirror.cc.columbia.edu/pub/software/apache//apr/apr-1.5.1.tar.gz

Wget-c http://mirror.cc.columbia.edu/pub/software/apache//apr/apr-util-1.5.4.tar.gz

Wget-c http://mirror.cc.columbia.edu/pub/software/apache//apr/apr-iconv-1.2.1.tar.gz



Install in sequence:

./configure--prefix=/usr/local/apr/apr-util-1.5.4

Error:

Configure:error:APR could not being located. Use the--WITH-APR option.

(It seems like you need to--with-apr this option)




Then install it first: apr-1.5.1

TAR-ZXVF apr-1.5.1.tar.gz

CD apr-1.5.1

./configure--prefix=/usr/local/apr/apr-1.5.1


Appearance: Rm:cannot remove ' libtoolt ': No such file or directory (regardless of it, is not able to delete ' Libtoolt ', there is no need to delete the chant!) )

Make

Make install



Next, install apr-util-1.5.4

./configure--prefix=/usr/local/apr/apr-util-1.5.4--with-apr=/usr/local/apr/apr-1.5.1 (add this to the previous Apr installation directory)

Make

Make install




Looks like there's another one. (apr-iconv-1.2.1 for Character set conversion) view of the three./configure--help Find it in apr-util-1.5.4, then install the apr-iconv-1.2.1 before apr-util-1.5.4 installation

TAR-ZXVF apr-iconv-1.2.1.tar.gz

./configure--prefix=/usr/local/apr/apr-iconv-1.2.1

Error Configure:error:APR could not being located. Use the--WITH-APR option

It seems to be the APR of the installation directory, it is as follows

./configure--prefix=/usr/local/apr/apr-iconv-1.2.1--with-apr=/usr/local/apr/apr-1.5.1

Make

Make install



Now install apr-util-1.5.4 again

./configure--prefix=/usr/local/apr/apr-util-1.5.4--with-apr=/usr/local/apr/apr-1.5.1--with-iconv=/usr/local/ apr/apr-iconv-1.2.1

Make clean

Make

Make install


-------------------------more than three packages to complete the installation-------------------------



Finally look at the subversion-1.8.11 in the./configure--help (--with-apr=path prefix for installed APR, PATH to Apr build Tree,or t He full path to apr-config)


Just install an APR on it, just don't say it, try it.

./configure--prefix=/usr/local/svn-1.8.11 (for later version management, I changed the installation directory to the version number of the format)--with-apr=/usr/local/apr/apr-1.5.1


Again out of error, appeared: Configure:error:no suitable aprutil found

That means it's going to be apr-util. (--with-apr-util--with-apr-util=path prefix for installed APU, PATH to APU build tree, or the full PATH to Apu-config )

Then add the chant.

Configure it again as follows:

./configure--prefix=/usr/local/svn-1.8.11--with-apr=/usr/local/apr/apr-1.5.1--with-apr-util=/usr/local/apr/ apr-util-1.5.4



Nima! It went wrong again,

Configure:error:Subversion requires SQLite

It appears that you want to install SQLite (an engine that can be embedded in a SQL database).

Find official Website: http://www.sqlite.org/

Get download Link: wget-c http://www.sqlite.org/2015/sqlite-autoconf-3080800.tar.gz

./configure--prefix=/usr/local/sqlite-autoconf-3080800

Make

Make install




Compile subversion-1.8.11 again

./configure--prefix=/usr/local/svn-1.8.11--with-apr=/usr/local/apr/apr-1.5.1--with-apr-util=/usr/local/apr/ apr-util-1.5.4--with-sqlite=/usr/local/sqlite-autoconf-3080800


( Oh, Mary!) Passed this time. )

Make

Make install



********************************* :)


This article is from my It career blog, so be sure to keep this source http://quietnight.blog.51cto.com/7163892/1606227

Compile and install SVN on CentOS

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.