libsvn_subr-1.so.0: undefined symbol: apr_atomic_xchgptr 故障解决

源码编译安装完成之后,查看svn的安装版本会报以下错误

svn: symbol lookup error: /usr/local/subversion/lib/libsvn_subr-1.so.0: undefined symbol: apr_atomic_xchgptr

问题是出在了libsvn_subr-1.so.0库文件上,那就先查看一下它所依赖的动态连接库信息吧

        ldd /usr/local/subversion/lib/libsvn_subr-1.so.0
        linux-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-64.so.2 (0x00000038e5200000)

问题找到了,libaprutil-1.so.0和libapr-1.so.0两个库文件连接的还是操作系统自带的apr和aprutil库文件,没有使用我之前编译安装的最新的库文件,依赖出错造成的这种问题。

1、不用卸载操作系统原有包,更改libaprutil-1.so.0和libapr-1.so的链接位置

rm /usr/lib64/libapr-1.so.0
ln -s /usr/local/apr/lib/libapr-1.so.0 /usr/lib64/libapr-1.so.0
rm /usr/lib64/libaprutil-1.so.0
ln -s /usr/local/apr-util/lib/libaprutil-1.so.0  /usr/lib64/libaprutil-1.so.0

2、卸载操作系统自带的这两个包,然后将最新编译的apr相关类库目录的位置打到/etc/ld.so.conf文件中,然后执行ldconfig就OK

# rpm -qa|grep apr
apr-util-1.2.7-11.el5_5.2
apr-1.2.7-11.el5_6.5
apr-util-1.2.7-11.el5_5.2
apr-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 

再次进行版本的检查,已经返回成功了。

# svn --version
svn, version 1.8.13 (r1667537)
   compiled Jun  4 2015, 10:01:00 on x86_64-unknown-linux-gnu

Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* 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

  

时间: 2024-10-29 19:08:48

libsvn_subr-1.so.0: undefined symbol: apr_atomic_xchgptr 故障解决的相关文章

/usr/lib64/libaprutil-1.so.0: undefined symbol: apr_os_uuid_get 报错解决办法

今天在打一个LAMP的架构时,为了快速部署就直接使用了yum 安装了httpd/mysql/php等组件.但是在httpd服务启动过程中发现服务一直启动不了,在error_log里面发现有以下内容, /usr/sbin/httpd: symbol lookup error: /usr/lib64/libaprutil-1.so.0: undefined symbol: apr_os_uuid_get[Wed Nov 08 09:22:40 2017] [notice] suEXEC mechan

[速记]python: symbol lookup error: /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0: undefined symbol: g_log_structured_standard问题解决

python: symbol lookup error: /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0: undefined symbol: g_log_structured_standard https://packages.debian.org/sid/amd64/libatk1.0-0/download sudo dpkg -i *.deb Done! 原文地址:https://www.cnblogs.com/DataNerd/p/9094972.ht

apache安装mod_ssl.so 出现 undefined symbol: ssl_cmd_SSLPassPhraseDialog错误解决

很久很久以前,安装Apache的时候,根本没想过将来的某一天会使用到ssl,所以也就没有安装那个模块,结果今天需要用到的时候,却无从下手了. 由于在安装Apache的时候,mod_ssl.so这个文件没有被安装,因此决定安装这个文件.安装的方法主要有两种:重新编译安装和加载安装模块. 安装方法1:简单,就是直接重新编译apache,然后加上–enable-ssl,这个方法就不多说了,这里主要介绍方法2. 安装方法2:动态安装.Apache有类似PHP那样动态加载模块的机制,首先使用了网上介绍比较

pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0

我在使用yii2搭建网站的时候,打开该网站时,经常会出现以下警告: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_mysql.so' - /usr/lib/php5/20121212/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0 解决方法: remove and purge th

一键安装lnmp报错 pycurl.so: undefined symbol: CRYPTO_set_locking_callback

There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback Please install a package which provides thi

ngrep undefined symbol: pcap_restart 错误处理

[@bx_10_70 /opt/linuxshare/]# ngrep port 80 -W byline interface: eth0 (10.16.10.0/255.255.255.0) ngrep: symbol lookup error: ngrep: undefined symbol: pcap_restart [@bx_10_70 /opt/linuxshare/]# ldd /usr/sbin/ngrep linux-vdso.so.1 =>  (0x00007ffe918640

psycopg2关于undefined symbol: lo_truncate64解决方法

今天,在centos6.5下安装psycopg2,利用Python连接PostgreSQL数据库的时候,出现了一个undefined symbol: lo_truncate6的错误: django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: /mydev/pyweb/cancerdb/lib/python2.7/site-packages/psycopg2/_psycopg.so: undefined

ssh升级以及ssh: symbol lookup error: ssh: undefined symbol: EVP_aes_128_ctr错误处理

1.解压安装openssl包:(不能卸载openssl,否则会影响系统的ssl加密库文件,除非你可以做两个软连接libcryto和libssl) # tar -zxvf openssl-1.0.1.tar.gz # cd openssl-1.0.1 #./config -fPIC threads shared # make # make test # make install # mv /usr/bin/openssl /usr/bin/openssl.OFF # mv /usr/include

./Encryptor: undefined symbol:Z11startserviceLAKJDFLJALDKJFLLLLL

在Linux下编译得Encryptor文件,但是执行./Encryptor时 报了如上错误:undefined symbol:Z11startserviceLAKJDFLJALDKJFLLLLL 原因分析:执行过程中找不到startservice这个函数的定义 ——>可能是封装startservice这个函数的.so库未找到 ——>封装startservice这个函数的库名是libsocklib3.so(存在于本地目录lib目录中) ——>通过echo $LD_LIBRARY_PATH命