Detailed configuration of the svn environment in centos 5.5 (with the latest domestic source address in centos 5.5)

Source: Internet
Author: User
Tags subversion client svn client

 

(1) The simplest way to install only subversion is to enter: Yum install subversion on the terminal.

(However, the installation is generally a relatively low version, depending on the version in the software library)

 

 

Appendix: the latest domestic source configuration see: http://daicongcong330.blog.163.com/blog/static/176969132010721101517666/

 

 

 

 

 

 

 

(2) Detailed installation methods include ):

 

Installation Method see: http://www.phpweblog.net/richard-dong/archive/2008/12/31/6254.html

 

 

For more information about the related installation packages, see the http://download.csdn.net/source/3164996, including some dependent software + Apache + subversion packages for Apache.

 

This error may occur during the compilation of the connection (make) Subversion:/usr/bin/ld: cannot find-lexpat

In this case, you can use the following command to solve the problem: Yum-y install libtool-l expat *

 

 

 

 

 

(3) You can also use the RPM package for installation:

 

For the addresses of these packages, see (this address is quite good ):

 

Http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/

 

 

 

Specific Installation Method see: http://hi.baidu.com/rainchen/blog/item/ee4107080a398e38e924881c.html

 

 

 

 

 

 

(4) but in centos5.5 of the actual lab, 1.6.6 is installed in the following method:

 

See: http://www.ws-school.cn/blog/37.html

 

There are only two databases: subversion-1.6.6.tar.gz,subversion-deps-1.6.6.tar.gz. The latter contains some dependent libraries of the former, such as APR and APR-utlis. (If you only use the svn: // file system management method, you can skip Apache installation)

 

./Configure -- prefix =/usr/local/subversion1.6.6 -- indicates that the subversion will be installed in this directory in the future.

 

 

 

After make, the following problems may occur during make install:

 

/Root/subversion/. lib/libsvn_delta-1.so.0: cannot restore segment prot after reloc: Permission denied

 

1) Disable SELinux first:

Change the content of the/etc/sysconfig/SELinux file to SELinux = disabled.

 

2) then use: chcon-T texrel_shlib_t/root/subversion/. lib/libsvn_delta-1.so.0 until all similar issues are solved.

 

In this way, you can install it correctly.

 

But because this is a compilation and installation, rather than using yum for installation, the current installation directory (/usr/local/subversion1.6.6) the "SVN" command cannot be used directly because it is not the startup directory of the registered program in the system environment variables. The following problems occur:

[Root @ tu132063 subversion-1.5.2] # SVN
-Bash:/usr/bin/SVN: no such file or directory

 

---- You can use "Echo $ path" to view the registered program startup directory ----

 

 

1) A thorough solution is to register this directory in the system's environment variables:

Use VI/etc/profile and add the following content at the end of the profile file

 

Export Path = $ path:/usr/local/subversion1.6.6/bin

 

In this way, the problem can be solved, but the system needs to be restarted.

 

2) The other method without restarting the system is to steal several subversion program files in "/usr/local/subversion1.6.6/bin: "neon-config SVN svnadmin svndumpfilter svnlook svnserve svnsync svnversion" is copied to a registered program startup directory, for example: /usr/local/bin (because only SVN commands are used on the client, only this one can be copied, however, an error may occur. We recommend the first solution because it is troublesome to restart the server in the lab.

 

 

 

 

 

 

Because problems may occur when checking the svn client of a lower version, the idea of upgrading the Subversion client is introduced, but many problems have been encountered in the actual operation, and some problems that are difficult to solve are involved in this article. At the same time, we have a deeper understanding of Linux systems.

 

 

 

This is also a good reference: http://lookdfw.blog.163.com/blog/static/5824974220110525227903/

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.