Author: zccst
1, download
http://subversion.apache.org/download/
A total of two documents, respectively: Subversion-1.6.21.tar.gz and subversion-deps-1.6.21.tar.gz
Then the pressure is pressed in turn.
2, installation
# CD subversion-1.6.21
#./configure--PREFIX=/OPT/SVN
# make #编译, if prompted incorrectly, you may need root permissions
# make install #安装, root user permissions may be required at this time
3, configure
(1) Link the SVN command to the/usr/local/bin directory (requires root permissions):
Ln–s/usr/local/subversion/bin/svn/usr/local/bin
Test if you can use SVN in the user directory:
SVN help if a list of commands appears, it indicates that the link has succeeded.
(2) Use the chmod command to make the list checkout commit the three command scripts have Execute permissions:
chmod 777 List Checkout Commit
CP List Checkout Commit/usr/bin
SVN Client Installation Succeeded
4, Errors and solutions
Test:
SVN checkout https://xxx.xxx.xxx/
The result reported the following error: SVN:SSL is not supported
Take a closer look, for the following reasons, 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 it was in execution./configure to add--with-ssl
OK, reinstall, 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 again
./configure--with-openssl=/usr/local/ssl--with-ssl
OK, this execution is successful, then execute Make,make install.
Now perform the SVN--version again, as shown below:
[Wap@localhost boss]$ svn--version
SVN, version 1.6.1 (r37116)
Compiled June 17 2010, 14:59:48
Copyright (C) 2000-2009 collabnet.
Subversion is open source software, http://subversion.tigris.org/
This product includes 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 in local disk.
-Handles ' file ' scheme
* Ra_serf:module for accessing a repository via WebDAV protocol using serf.
-Handles ' HTTP ' scheme
-Handles ' HTTPS ' scheme
As you can see, HTTPS is now supported.
This implementation
SVN checkout https://xxx.xxx.xxx/
Success.
Tips for 5,co
Error Validating server Certificate for ' https://svn.baidu.com:443 ':
-The certificate isn't issued by a trusted authority. Use the
Fingerprint to validate the certificate manually!
Certificate information:
-Hostname:svn.baidu.com
-Valid:from Tue 10:45:03 GMT until Fri, 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
It's supposed to just press p to get SVN to ignore the problem later, but it's strange that even if you choose P, the next time you do it will prompt the same high, if I only use the command to operate the problem
Not too big, but if you want to use Xcode to control the code, it is very painful, it is impossible to use.
But this is not a big problem, as long as the ~/.subversion/servers add a few lines of configuration can easily handle the following actions:
(1) Open servers configuration file with command: Open ~/.subversion/servers
(2) Add at the end of the servers configuration file:
Ssl-ignore-host-mismatch = True
Ssl-ignore-unknown-ca = True
Ssl-ignore-invalid-date = True
(3) I have done this, you try it-----------------------------------------------------------------------
attention! Your Password for authentication realm:
Can is stored to disk unencrypted! are advised to configure
Your system so, Subversion can store passwords encrypted, if
Possible. The documentation for details.
Can avoid future appearances of this warning by setting the value
Of the ' store-plaintext-passwords ' option to either ' Yes ' or ' no ' in
'/root/.subversion/servers '.
-----------------------------------------------------------------------