bash Linux Yum 致命 Python 错误:pycurl:libcurl 链接时版本比编译时版本旧
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14083969/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Linux Yum Fatal Python error: pycurl: libcurl link-time version is older than compile-time version
提问by Vernard
So this error is driving me crazy, I've search the web multiple times, ran a few things and no results. I get the following error when using yum.
所以这个错误让我发疯,我在网上搜索了很多次,运行了一些东西但没有结果。使用 yum 时出现以下错误。
[root@texas pycurl-7.19.0]# yum update
Fatal Python error: pycurl: libcurl link-time version is older than compile-timeversion
Aborted
[root@texas pycurl-7.19.0]# rpm -qa | grep pycurl
python-pycurl-7.19.0-8.el6.i686
[root@texas pycurl-7.19.0]# rpm -qa | grep curl
curl-7.19.7-26.el6_2.4.i686
libcurl-7.19.7-26.el6_2.4.i686
python-pycurl-7.19.0-8.el6.i686
[root@texas pycurl-7.19.0]#
[root@texas /]# locate libcurl.so
/usr/lib/libcurl.so
/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.1.1
[root@texas /]# locate pycurl
/usr/lib/python2.6/site-packages/pycurl-7.19.0-py2.6.egg-info
/usr/lib/python2.6/site-packages/pycurl.so
/usr/share/doc/python-pycurl-7.19.0
I've recompiled my directadmin build with curl and no change after that either. (I already had directadmin with curl working fine before)
我已经用 curl 重新编译了我的 directadmin 版本,之后也没有任何变化。(我之前已经使用 curl 的 directadmin 工作正常)
Any help is appreciated.
任何帮助表示赞赏。
回答by level6
I have found that VMWare Toolkit caused this issue on CentOS VMs.
我发现 VMWare Toolkit 在 CentOS 虚拟机上导致了这个问题。
vi /etc/ld.so.conf.d/vmware-tools-libraries.conf
vi /etc/ld.so.conf.d/vmware-tools-libraries.conf
and add the following two lines at the top (assuming you're 64-bit):
并在顶部添加以下两行(假设您是 64 位):
/lib64 /usr/lib64
/lib64 /usr/lib64
Save, and "ldconfig".
保存,然后“ldconfig”。
回答by abitmol
I just had the same issue. Someone just played with LD_LIBRARY_PATH.
我只是有同样的问题。有人刚刚玩过 LD_LIBRARY_PATH。
unset LD_LIBRARY_PATH; yum update
or
或者
LD_LIBRARY_PATH='' yum update
does the trick for me.
对我有用。
回答by Chuanhang.gu
My error is very simple.
我的错误很简单。
remove /usr/local/curl/lib/ from /etc/ld.so.conf then it's ok.
从 /etc/ld.so.conf 中删除 /usr/local/curl/lib/ 然后就可以了。
回答by Pierre D
I just had the same problem after having added a bunch of libraries to the ldconfigpath. (I needed to install the RPostgreSQLin my local R install, and was missing libpq.soand some others; I happened to have a package that had all that --and more-- and simply added the libs of that package via ldconfig; that royally screwed up yumand pycurletc.)
在将一堆库添加到ldconfig路径后,我遇到了同样的问题。(我需要安装RPostgreSQL在我的本地研发安装,并且是失踪libpq.so和其他一些人,我正好有一个包,有所有--and缓慢-与简单相加通过该包的库ldconfig;即庄严搞砸了yum和pycurl等等。)
So, I just selected the minimal set of libsI wanted and added them to some place in /usr/local/lib/rpostgresql-depend, then added that via ldconfig. Now both that RPostgreSQL package in R and yumwork.
所以,我只是选择了我想要的最小库集并将它们/usr/local/lib/rpostgresql-depend添加到ldconfig. 现在 RPostgreSQL 包在 R 和yum工作。
Your problem might be a variation of this.
你的问题可能是这个的变体。

