After the source code is compiled and installed, review the installation version of SVN to report the following error
Svn:symbol Lookup Error:/usr/local/subversion/lib/libsvn_subr-1. So. 0: undefined symbol:apr_atomic_xchgptr
The problem is on the libsvn_subr-1.so.0 library file, so check out the dynamic connection library information it relies on.
ldd/usr/local/subversion/lib/libsvn_subr-1. So.0Linux-vdso.so.1= (0x00007fff023fd000) Libaprutil-1. So.0=/usr/local/apr-util/lib/libaprutil-1. So.0(0x00002ac3fe99f000) Libapr-1. So.0=/usr/local/apr/lib/libapr-1. So.0(0x00002ac3febc3000) libuuid.so.1= =/lib64/libuuid.so.1(0x00002ac3fee02000) librt.so.1= =/lib64/librt.so.1(0x00002ac3ff006000) libcrypt.so.1= =/lib64/libcrypt.so.1(0x00002ac3ff210000) libexpat.so.0= =/lib64/libexpat.so.0(0x00002ac3ff448000) libz.so.1= =/usr/lib64/libz.so.1(0x00002ac3ff66a000) libdl.so.2= =/lib64/libdl.so.2(0x00002ac3ff87f000) libpthread.so.0= =/lib64/libpthread.so.0(0x00002ac3ffa83000) libmagic.so.1= =/usr/lib64/libmagic.so.1(0x00002ac3ffc9e000) libc.so.6= =/lib64/libc.so.6(0x00002ac3ffeae000) /lib64/ld-linux-x86- -. So.2(0x00000038e5200000)
The problem is found, libaprutil-1.so.0 and libapr-1.so.0 two library files are connected to the operating system with the APR and Aprutil library files, not using the latest library files I compiled and installed, relying on the error caused by this problem.
1, do not uninstall the operating system original package, change the link location of libaprutil-1.so.0 and libapr-1.so
rm/usr/lib64/libapr-1. So. 0 -s/usr/local/apr/lib/libapr-1. So. 0 /usr/lib64/libapr-1. So. 0 /usr/lib64/libaprutil-1. So. 0 -s/usr/local/apr-util/lib/libaprutil-1. So. 0 /usr/lib64/libaprutil-1. So. 0
2, uninstall the operating system comes with the two packages, and then the latest compiled APR related class Library directory location to the/etc/ld.so.conf file, and then execute ldconfig OK
# Rpm-qa|grep APRAPR-UTIL-1.2.7-11.EL5_5.2APR-1.2.7-11.EL5_6.5APR-UTIL-1.2.7-11.EL5_5.2APR-1.2.7-11.EL5_6.5#RPM- E--allmatches apr-util#rpm-e--allmatches apr#echo '/usr/local/apr/lib ' >>/etc/ld.so.conf#echo '/usr/ Local/apr-util/lib ' >>/etc/ld.so.conf#ldconfig
Again, the version of the check has been returned successfully.
# svn--VERSIONSVN, version 1.8.13 (r1667537) compiled June 4, 10:01:00 on X86_64-unknown-linux-gnucopyright (C) The Apache software Foundation.this software consists of contributions made by many people;see the NOTICE file fo R more information. Subversion is open source software, see http://subversion.apache.org/The following repository access (RA) modules is Avai lable:* 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
Libsvn_subr-1.so.0:undefined Symbol:apr_atomic_xchgptr Fault Resolution