Install Linux svn and Linux svn
Orzdba is developed by taobao and is a good tool. To download the orzdba tool, you must use svn to download it. First, install the svn tool. However, installing svn is also troublesome and requires support from various packages.
Environment:RHEL 6.4 x86_64
1. Use yum to install some RPM packages
# yum install libserf libtool autoconf gcc libapr libapr-util *sqlite* libz libmagic apr-devel apr-util-devel perl-Class-Data-Inheritable.noarch
2. Install serf-1.2.1
yum -y install expat-develwget http://serf.googlecode.com/files/serf-1.2.1.tar.bz2tar xjf serf-1.2.1.tar.bz2cd serf-1.2.1./configure --prefix=/usr/local/serfmake && make install
Note:
(1) Before version 1.8, you need to add neon. After version 1.8, You need to discard neon and change serf;
(2) serf-1.2.1 is used here. It is said that there will be exceptions when serf-1.8 is used in subversion 1.3.0.
3. svn InstallationDownload subversion:
Https://subversion.apache.org/download/
Note:Use the source code for installation. Although there are also RPM packages, the installation of each RPM package fails.
To install the subversion, you must use sqlite 3.7.15.1 amalgamation. Therefore, download:
Http://www.sqlite.org/sqlite-amalgamation-3071501.zip
Tar xvzf subversion-1.8.9.tar.gzunzip Co., sqlite-amalgamation-3071501.zip-d. /subversion-1.8.9/cd subversion-1.8.9/mv sqlite-amalgamation-3071501 sqlite-amalgamation. /configure -- with-serf =/usr/local/serf # Before version 1.8, use neon, -- with-neno =/usr/local/neonmake & make install
4. Verify that svn is correctly installed
# svn --versionsvn, version 1.8.9 (r1591380) compiled Aug 1 2014, 22:22:48 on x86_64-unknown-linux-gnu Copyright (C) 2014 The Apache Software Foundation.This software consists of contributions made by many people;see the NOTICE file for more information.Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme* ra_local : Module for accessing a repository on local disk. - handles 'file' scheme* ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.2.1 - handles 'http' scheme - handles 'https' scheme
Supports http and https, and the installation is OK.
5. troubleshooting of installation errors(1) The following error occurs in subversion./configure:
Checking sqlite library version (via header)... unsupported SQLite version
Checking sqlite library version (via pkg-config)... none or unsupported 3.6.20
No
An appropriate version of sqlite cocould not be found. We recommmend
3.7.15.1, but require at least 3.7.12.
Please either install a newer sqlite on this system
Or
Get the sqlite 3.7.15.1 amalgamation from:
Http://www.sqlite.org/sqlite-amalgamation-3071501.zip
Unpack the archive using unzip and rename the resulting
Directory:
/Root/subversion-1.8.9/sqlite-amalgamation
Configure: error: Subversion requires SQLite
This is because the sqlite version is too low. solution:
Download: http://www.sqlite.org/sqlite-amalgamation-3071501.zip
Then unzip the file to the./subversion-1.8.9/sqlite-amalgamation directory and click./configure again.
(2) After the subversion is installed, an error is returned when you use svn to obtain resources over http or https:
# Svn co http://code.taobao.org/svn/orzdba/trunk
Svn: E170000: Unrecognized URL scheme for 'http: // code.taobao.org/svn/orzdba/trunk'
Solution:
Serf is not installed before subversion is installed. After serf is installed, recompile the subversion.
An error occurred while installing SVN in LINUX.
Your parameter write is incorrect.
. /Configure -- with-apxs =/usr/local/apache/bin/apxs -- prefix =/usr/local/subversion -- with-apr =/usr/local/apache --- apr-util =/usr/local/apache -- with-ssl -- with-zlib -- enable-maintianer-mode
There is no space between [-- with-apr-util =/usr/local/apache] and the preceding parameter, so the apr path is reported to be faulty.
Problems with installing svn in linux
Are you using the source code to install gcc? Gcc is required. Lz can consider learning the lfs documentation.
I do not recommend this. You just need to install the compiler with the software management system of the system. We recommend that you install all the software with the software management system of the system as much as possible.