How to solve the problem of no data query when installing the subversion version on Linux!

Recently, I installed subversion on both CentOs6 and 7, and then encountered different weird problems. There are no good solutions to the problems online.

For example, the problem when installing subversion 1.6.11 on CentOs7

In addition to needing to install the basic

apr, apr-util, neon, expat (xml parser, used during compilation)

apr, apr-util are in  the versions corresponding to subversion-deps

Reference for the above installation package configuration commands:

./configure --prefix=/usr/local/svn/apr

./configure --prefix=/usr/local/svn/apr-util --with-apr=/usr/local/svn/apr

./configure --prefix=/usr/local/svn/expat

./configure --prefix=/usr/local/svn/neon --with-ssl

./configure --prefix=/usr/local/svn/ --with-apr=/usr/local/svn/apr --with-apr-util=/usr/local/svn/apr-util --with-ssl --with-neon=/usr/local/svn/neon/

Finally use make && make install to install

PS: The installation packages are installed one by one. Do not execute the above reference commands together. Which one is installed will be executed. Just install it in order

Subversion download path: https://archive.apache.org/dist/subversion/

1. Encountered undefined reference to `SSL_SESSION_cmp'

    This problem is caused by a bug in the neon version that is too low. Use the neon-0.29.3 version.

    Download address https://notroj.github.io/neon/neon-0.29.3.tar.gz

    If 29.3 compiles and reports an error, use version 31.0

2. Encountered svn: Unrecognized URL scheme (generally needs to start with svn://, http://, file://, etc.)"

    You need to download the subversion-deps component package that matches the installed SVN version and decompress subversion-deps.

    And copy everything in the directory to the subversion directory, and then restart ./configure and make && make install

3. When SVN does not support SSL, it is still not supported except after installing and specifying openssl.

    You need to check ./neon-config under the bin of the neon installation directory and execute ./neon-config --

    Check if SSL is yes. If it is not YES, check step 1 to see if the version is too low, or if neon has been compiled.

    Reinstall neon and then reinstall subversion

4. Encountered svn: The PROPFIND response did not include the requested resourcetype value (The  PROPFIND  response did not include the requested  resourcetype  value)

    This is because the SVN protocol version is higher than the server version. You need to use 1.6.11 or the corresponding server version.

    It is recommended to use yum to install directly. Do not install offline. It is disgusting.

5. Installing subversion 1.6.11 encountered subversion/libsvn_fs_fs/rep-cache.c:34:3: Error: 'REP_CACHE_DB_SQL' is not declared (not within the function)

    vim subversion/libsvn_fs_fs/rep-cache.c, delete the REP_CACHE_DB_SQL variable of the array

    Re-execute make && make install

    If the make: *** [subversion/libsvn_fs_fs/rep-cache.lo] error 1 still exists, edit rep-cache.c to check whether there are garbled characters of ^L or ^M.

 

If you think your problem has been solved, please give me a thumbs up, thank you!

Guess you like

Origin blog.csdn.net/Qensq/article/details/107389805