Method One:
1, wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz
2, wget http://subversion.tigris.org/downloads/subversion-deps-1.6.1.tar.gz
[or directly upload to the Baidu cloud of these two files]
3.
Tar zxvf subversion-1.6.1.tar.gz
Tar zxvf subversion-deps-1.6.1.tar.gz
CD SUBVERSION-1.6.1/
./configure-prefix=/opt/svn -without-berkeley-db-with-zlib=/usr/local/zlib "zlib to install, and to build a soft link"
./configure--with-openssl=/usr/local/ssl--with-zlib=/usr/local/zlib-without-serf "The Final solution is this configuration,--with-openssl=/ Usr/local/ssl installation of OpenSSL automatically built a file in usr/local/SSL "
./configure--prefix=/usr/local/svn--with-openssl=/usr/include/openssl--without-berkeley-db "The final plan is this, not the one above. The path behind the WITH-OPENSSL=/USR/INCLUDE/OPENSSL is the path to the section of the yellow font in this article, so that "
Config, if the following interface appears, ignoring two warnings, the config succeeded.
"Configure:WARNING:unrecognized Options:--with-openssl
CONFIGURE:WARNING:WE has configured without BDB filesystem support
You don't seem to having Berkeley DB version 4.0.14 or newer
Installed and linked to Apr-util. We have created makefiles which
Would build without the Berkeley DB back-end; Your repositories would
Use FSFS as the default back-end. You can find the latest version of
Berkeley DB here:
Http://www.oracle.com/technology/software/products/berkeley-db/index.html "
Whether the installation was successful
Svnserve--version
To verify that SVN installation is successful, you can also run the statement:
Svn–version
Appears as follows, SVN installation succeeded
【
Svnserve, version 1.6.1 (r37116)
Compiled 8 2014, 16:26:19
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository back-end (FS) modules is available:
* Fs_fs:module for working with a plain file (FSFS) repository
】
"Error one appears:
Checking for openssl/opensslv.h ... no
Configure:error:We require OpenSSL; Try--with-openssl
Configure failed for serf
------------------------------------------------------
Solution:
The error message requires OpenSSL to be installed, so I installed a OpenSSL with the following installation methods:
Cd/usr/local
wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz "or copy the past directly from Baidu Cloud disk"
TAR-ZXVF openssl-1.0.0a.tar.gz
CD openssl-1.0.0a
./config
./config-t
Make depend
Make
Make Test
Make install
First detect if the system has no SSL installed:
[Email protected] subversion-1.6.6]# Find/-name opensslv.h [Email protected] subversion-1.6.6]# |
If it is not found, execute the following command to install:
[email protected] subversion-1.6.6]# Yum install OpenSSL [email protected] subversion-1.6.6]# Yum install Openssl-devel |
After installation, use the Find/-name opensslv.h command to locate the directory where the Opensslv.h is located, that is, the following--with-openssl= path, compile:
[Email protected] subversion-1.6.6]# Find/-name opensslv.h /usr/include/openssl/opensslv.h [Email protected] subversion-1.6.6]#/configure--prefix=/usr/local/svn--with-openssl=/usr/include/openssl-- Without-berkeley-db |
After installation, an SSL directory is generated under/usr/local
Set the environment variable to add the following in the path of/etc/profile:
path=/usr/local/ssl/bin:/sbin/: $PATH:/usr/sbin
Export PATH
OK, error 1 resolved. 】
------------------------
4, then close the terminal, re-open a, to the current download of the Subversion directory
CD SUBVERSION-1.6.1/
./configure--with-openssl=/usr/local/ssl
No show, OK, problem solved
5. Make
6. Make Install
"Error two occurred:
Collect2:ld returned 1 exit status
MAKE[1]: * * * [libserf-0.la] Error 1
MAKE[1]: Leaving directory '/usr/local/subversion-1.6.16/serf '
Make: * * * [External-all] Error 1
-------------------------------------------------
Solution:
In this case, I first installed the serf-0.7.2.tar.gz this package "there is a problem, the Internet did not search this package", in the configuration will point to this package, but it does not work, so I later in the configuration of the time to ignore the package, as follows:
./configure–with-ssl–with-openssl=/usr/local/ssl–with-libs=/usr/local/ssl–without-serf–enable-maintainer-mode
That is, compared to the above add a sentence: –without-serf
This configuration and then make, the compilation passed!
After that, install it again:
Make install
Also passed successfully, in order to verify that SVN installation was successful, we ran the statement:
Svn–version
Method Two:
August 4, 2014
Yum Install-y subversion-*
Error occurred:
File/usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.73-3.el6_5.x86_64 conflicts with file from Package mysql-server-5.6.19-1.el6.x86_64
----------------------------------------------------------
Solution:
Svnserve--version
Mkdir/opt/svndata
Cd/opt/svndata
Mkdir–p/opt/svndata/javaweb
Svnadmin Create/opt/svndata/javaweb
-------------------
Then copy this folder under the Auth passwd SEv etc three folders
Useradd SSS
passwd sss (enter password)
Chown-r Sss:sss/svndata
Http://www.cnblogs.com/bluewelkin/p/3853538.html
Turn on SVN
Svnserve-d-r/opt/svndata
Killall Svnserve Close SVN
Test SVN
SVN Co svn://127.0.0.1/javaweb
Reference article:
http://300second.blog.51cto.com/7582/780348
Svnserve, version 1.6.1 (r37116)
Compiled 8 2014, 16:26:19
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
Install SVN on a pro-test Linux