Centos进行yum报FatalPythonerror:pycurl: libcurl link-time version is older than compile-time version

来源:互联网 发布:python mobi 编辑:程序博客网 时间:2024/06/14 03:58

在编译程序的过程中,由于相应环境的所需的动态库加载环境出了问题,我自己对动态库的环境进行了修改,在/etc/profile里的最后一行里加了这么几句话:

export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64/jre/lib/amd64/server:/usr/local/VMProg/lib/vmware-vix-disklib/lib64:/lib64:${LD_LIBARY_PATH}


运行source /etc/profile,使环境生效。

但发现,执行yum命令,发现出错:

错误为:

FatalPythonerror:pycurl: libcurl link-time version is older than compile-time version
Aborted


经过查资料,发现问题可能是环境造成的;于是,在 /etc/profile 加上这么几段话:

export LD_LIBRARY_PATH=/usr/lib64:/usr/lib:/usr/local/VMProg/lib:/usr/local/VMProg/lib/vmware-vix-disklib/lib64:/lib64:${LD_LIBARY_PATH}


然后,source /etc/profile,使环境生效。


执行yum安装,成功。


结论:大部分程序错误,首先要考虑环境问题

阅读全文
0 0