Sudo apt-Get install Subversion
Ubuntu SVN upgrade
Step 1: Download the installation package (two)
Wget http://subversion.tigris.org/downloads/subversion-deps-1.6.2.tar.gz
Wget http://subversion.tigris.org/downloads/subversion-1.6.2.tar.gz
Step 2: Install and copy the above two packages to the same directory, and decompress
$ Tar xvzf subversion-1.6.2.tar.gz; tar xvzf subversion-deps-1.6.2.tar.gz;
Step 3: Compile and install
$ Cd ~ /Subversion: 1.6.2/
$./Configure
$ Make clean
$ Make
$ Make install
Step 4: test. We can see version 1.6.2. Congratulations! SVN has been upgraded!
$ SVN -- version
SVN, version 1.6.2 (r37639)
Compiled Jun 11 2009, 01:07:59
Copyright (c) 2000-2009 collabnet.
Subversion is open source software, see http://subversion.tigris.org/
This product has DES software developed by collabnet (http://www.Collab.Net /).
The following repository access (RA) modules are available:
* Ra_neon: module for accessing a repository via WebDAV protocol using neon.
-Handles 'HTTP 'Scheme
* 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.
-Handles 'HTTP 'Scheme
-Handles 'https' Scheme
Problem:
1.
For example, when making, the error/usr/lib/libexpat. So: cocould not read symbols: file in wrong format is reported...
For example, an error is reported during make.
/Usr/lib/libexpat. So: cocould not read symbols: file in wrong format
When configuring configure, add the parameter -- With-expat = builtin.
2.
Checking zlib. h usability... no checking zlib. h presence... no checking zlib. H...
Checking zlib. h usability... no
Checking zlib. h presence... no
Checking zlib. H... no
Configure: Error: Subversion requires zlib
Solution
[Root @ 136199 ~] # Cd/usr/ALI/subscription-1.6.2
[Root @ 136199 subversion-1.6.2] # cd zlib/
[Root @ 136199 zlib] #./configure -- shared
[Root @ 136199 zlib] # Make
[Root @ 136199 zlib] # CD ..
[Root @ 136199 subversion-1.6.2] #./configure cppflags = "-izlib/-lzlib/" -- with-OpenSSL =/usr/bin/OpenSSL -- without-serf
OpenSSL parameters are used to solve the problem that OpenSSL cannot be found.
3.
/Usr/bin/ld: cannot find LZ
Solution: Install zlib first,
$ Wget http://www.zlib.net/zlib-1.2.3.tar.gz
$ Tar xzvf zlib-1.2.3.tar.gz
$ Zlib-1.2.3 CD
$./Configure
$ Make
$ Make install
4.
SVN: Unrecognized URL scheme'
SVN: Unrecognized URL scheme for 'http: // svn.test-inc.com/repos/ali_intl/done'
This is the neon library required for SVN access using the WebDAV protocol. We need to install this library. In the source code directory of subversion, we can expand the downloaded neon and name the directory neon.
1. wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
2. Tar-xvzf neon-0.25.5.tar.gz
3. Mv neon-0.25.5 neon
Then compile the subversion.
5.
Make:
/Usr/include/OpenSSL/kssl. h: 72: 18: krb5.h: no such file or directory
Solution:
Run
Export localdefs = "-dopenssl_no_krb5"
Export c_include_path = "/usr/Kerberos/include"
6.
Configure error:
Checking whether apache version is compatible with APR version... no
Configure: Error: Apache version incompatible with APR version
Solution:
MV/usr/local/apache2/usr/local/aapache2