Centos 5.5 64 bits, compile and install Subversion1.7

Source: Internet
Author: User
Tags openssl svn

Two days of subversion!!!! Ah, go crazy ~ I use the same version:

Subversion-1.7.2.tar.gz
Subversion-deps-1.6.1.tar.gz

Before these two versions of the files, I succeeded in compiling the installation under Ubuntu12.04 AMD64. However, here, Apr, Apr-util, sqlite3.c, serf configure all passed, but in the compile time to report the following error:

1. Serf can not Find-lexpat
2. Subversion serf make deflate context_t

All the way crazy Google Ah, there is no solution ... Good lost!!!. Alas, think of also no progress, also changed the other two tools software: Tmux, Vim73. These two are still relatively pleasant, although halfway Tmux also reported such as:

Not found Libevent

Such a mistake, but to the official website of the next libevent-2.0.19-stable.tar.gz, loaded to finish the ~ looked at the next time, the evening there are sharing will not continue to get ... Say it tomorrow ~
Early in the morning I woke up, how also think impassability, yesterday tried n times also did not succeed, so early in the morning changed the idea, I go to the official website the entire latest version of:

#wget http://labs.mop.com/apache-mirror/subversion/subversion-1.7.5.tar.gz
#wget http://subversion.tigris.org/downloads/subversion-deps-1.6.18.tar.gz

Then untie the two bags and deps the APR, apr-utl ... Move to the subversion1.7.5 directory, first or try, the same installation steps as before:

#cd Subversion 1.7.5
#./configure--prefix=/usr/local/subversion--with-openssl=/usr/local/openssl--with-zlib=/usr/local/zlib

The "OpenSSL" and "zlib" have been installed before.
/usr/local
, so this is the direct use. But it didn't work out.

#./configure .....
....
Ok
#make
....
Make deflate context_t isn't find.

Behind I think I have to try one of the installation, and then ran to the APR, Apr-util installed a time, and the serf to throw away, the operation is as follows:

#cd Subversion 1.7.5
#cd Apr
#./configure--PREFIX=/USR/LOCA/APR
....
Ok
#make
....
Make leave ...
#make Install
Install OK
#cd.
#cd Apr-util
#./configure--WITH-APR=/USR/LOCAL/APR--prefix=/usr/local/apr-util
....
Config Create:makefile
...
#make
....
Make leave ...
#make Install
Ok
#cd.
#./configure--prefix=/usr/local/subversion--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- Without-serf--with-openssl=/usr/local/openssl
....
Configure Create:makefile
......
#make
o Checking zlib.h presence ... no checking zlib.h

Cup with ... T_T, there is still a problem. After looking at the Internet to see the need to execute such a command:

#cd zlib
#./configure--shared

It means that you can share a write data installation. I'm going to do the above and go back to Subversion 1.7.5.

#cd Subversion 1.7.5
#make Clean
....
#./configure .....
.....
Configure Create:makefile
...
#make
....
1 minutes later, still in the compilation ....
Make leave ...
#make Install
......

Finally succeeded ... Nima, did you need this? Go Crazy!!!

[Root@xyrj-server bin]# svn--version
SVN, version 1.7.5 (r1336830)
Compiled in June 22 2012,10:23:32

All rights reserved (C) Apache Software Foundation.
This software contains a lot of people's contributions, please check out the file NOTICE for more information.
Subversion is open source software, see the http://subversion.apache.org/site.

You can use the following version library Access modules:

* RA_SVN: A module that accesses the version library using the SVN network protocol.
-Handle "SVN" scenarios
* Ra_local: Access to the local disk's version library module.
-Process the "file" scheme

Summary: Linux under the software compiled installation, you have to go to personal experience, light feel can that is not reliable drip said ~ Ah ha

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.