Install and configure the svn client in Linux

Source: Internet
Author: User
Tags svn client collabnet

Author: zccst

1. Download

Http://subversion.apache.org/download/

There are two files in total: subversion-1.6.21.tar.gzand subversion-deps-1.6.21.tar.gz

And Then pressurize it in sequence.

2. Install

# Cd subversion-1.6.21
#./Configure -- prefix =/opt/SVN
# Make # compile. If an error is prompted, the root permission may be required.
# Make install # installation, which may require Root User Permissions

3. Configuration

(1) link the svn command to the/usr/local/bin directory (root permission required ):

Ln-S/usr/local/subversion/bin/SVN/usr/local/bin

Test whether SVN can be used in the user directory:

If the command list is displayed for SVN help, the connection is successful.

(2) Use the CHMOD command to grant the execution permission to the list checkout commit script:

Chmod 777 list checkout commit
CP list checkout commit/usr/bin

SVN client installed successfully

4. Errors and Solutions

Test:

SVN checkout https://xxx.xxx.xxx/

The following error is returned: SVN: SSL is not supported

The reason is as follows: SVN -- version shows that ra_neon does not support https:

* Ra_neon: module for accessing a repository via WebDAV protocol using neon.
-Handles 'HTTP 'Scheme

I checked it from the Internet and said that -- with-SSL should be added during the execution of./configure.

OK. reinstall the agent as follows:

Wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz

Tar-zxvf openssl-1.0.0a.tar.gz

CD openssl-1.0.0a

./Config
./Config-T
Make depend
Make
Make Test
Make install

Reinstall SVN
./Configure -- With-OpenSSL =/usr/local/SSL -- With-SSL
OK. This operation is successful. Run make and make install.

Execute SVN -- version again, as shown below:

[WAP @ localhost Boss] $ SVN -- version
SVN, version 1.6.1 (r37116)
Compiled JUN 17 2010, 14:59:48

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
-Handles 'https' Scheme
* Ra_svn: module for accessing a repository using the svn network protocol.
-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

Now, https is supported.

This execution

SVN checkout https://xxx.xxx.xxx/

Successful.

5. CO prompt

Error validating server certificate for 'https: // svn.baidu.com: 8080 ':
-The certificate is not issued by a trusted authority. Use
Fingerprint to validate the certificate manually!
Certificate Information:
-Hostname: svn.baidu.com
-Valid: From Tue, 16 mar 2010 10:45:03 GMT until Fri, 13 mar 2020 10:45:03 GMT
-Issuer: Baidu, Baidu, Beijing, Beijing, CN
-Fingerprint: AD: 77: 84: 4d: 5D: FB: 7A: C8: F7: 2E: FB: 48: 20: 86: 3A: 0e: 73: 43: e7: 62
(R) eject, accept (t) emporarily or accept (p) ermanently?

Direct P

If not, refer to the following solutions.

Simply press P to let SVN ignore this problem later, but it is strange that even if p is selected, the next operation will still prompt the same high speed. If I only use the command to operate the problem

It is not too big, but if you want to use xcode for code control, it will be very painful and useless.

But this is not a big problem, as long ~ /. Add several lines of configuration to subversion/servers. The specific operations are as follows:

(1) Use commands to open the servers configuration file: Open ~ /. Subversion/servers

(2) Add the following at the end of the servers configuration file:

SSL-ignore-host-Mismatch
= True
SSL-ignore-unknown-CA = true
SSL-ignore-invalid-date = true

(3)
You can try it.

-----------------------------------------------------------------------
Attention! Your password for authentication realm:

<Https://svn.baidu.com: 443> Subversion

Can only be stored to disk unencrypted! You are advised to configure
Your system so that subversion can store passwords encrypted, if
Possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
Of the 'store-plaintext-password' option to either 'yes' or 'no' in
'/Root/. Subversion/servers '.
-----------------------------------------------------------------------

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.