Fatal Python error: pycurl: libcurl link-time version is older than compile-time version

  • 使用yum 时报如下错误
[root@hadoop3 home]# yum
Fatal Python error: pycurl: libcurl link-time version is older than compile-time version
Aborted
  • 排查错误
    这里有解决方案
    http://rohitchauhanit.blogspot.com/2017/12/solution-of-fatal-python-error-pycurl.html
    翻译过来如下:
[root@hadoop3 home]# cd /usr/lib64/
#从其他yum使用正常的机器搞一个过来
[root@hadoop3 lib64]# cp /root/libcurl.so.4.3.0  .
[root@hadoop3 lib64]# rm libcurl.so.4
[root@hadoop3 lib64]# ln -s libcurl.so.4.3.0 libcurl.so.4
[root@hadoop3 lib64]# rm libcurl.so
[root@hadoop3 lib64]# ln -s libcurl.so.4.3.0 libcurl.so
[root@hadoop3 lib64]# yum clean all
[root@hadoop3 lib64]# yum
...
--sec-severity=SEVS, --secseverity=SEVS
                        Include security relevant packages matching the
                        severity, in updates

  Plugin Options:

总结:libcurl 依赖版本过低导致的(看样子),我的方法是从其他yum使用正常的机器上搞一个过来替换一下
日志:

[root@hadoop3 alnitak-v1.0]# cd /usr/lib64/
[root@hadoop3 lib64]# ll | grep -i libcurl
lrwxrwxrwx   1 root root      16 Nov 14 17:52 libcurl.so -> libcurl.so.4.1.1
lrwxrwxrwx   1 root root      16 Nov 14 17:42 libcurl.so.4 -> libcurl.so.4.1.1
-rwxr-xr-x   1 root root  347536 Apr  3  2017 libcurl.so.4.1.1
#从其他yum使用正常的机器搞一个过来
[root@hadoop3 lib64]# cp /root/libcurl.so.4.3.0  .
[root@hadoop3 lib64]# ll | grep -i libcurl
lrwxrwxrwx   1 root root        16 Nov 14 17:52 libcurl.so -> libcurl.so.4.1.1
lrwxrwxrwx   1 root root        16 Nov 14 17:42 libcurl.so.4 -> libcurl.so.4.1.1
-rwxr-xr-x   1 root root    347536 Apr  3  2017 libcurl.so.4.1.1
-rwxr-xr-x   1 root hadoop  435128 Nov 22 15:07 libcurl.so.4.3.0
[root@hadoop3 lib64]# rm libcurl.so.4
rm: remove symbolic link ‘libcurl.so.4’? y
[root@hadoop3 lib64]# ll | grep -i libcurl
lrwxrwxrwx   1 root root        16 Nov 14 17:52 libcurl.so -> libcurl.so.4.1.1
-rwxr-xr-x   1 root root    347536 Apr  3  2017 libcurl.so.4.1.1
-rwxr-xr-x   1 root hadoop  435128 Nov 22 15:07 libcurl.so.4.3.0
[root@hadoop3 lib64]# ln -s libcurl.so.4.3.0 libcurl.so.4
[root@hadoop3 lib64]# rm libcurl.so
rm: remove symbolic link ‘libcurl.so’? y
[root@hadoop3 lib64]# ln -s libcurl.so.4.3.0 libcurl.so
[root@hadoop3 lib64]# ll | grep -i libcurl
lrwxrwxrwx   1 root hadoop      16 Nov 22 15:10 libcurl.so -> libcurl.so.4.3.0
lrwxrwxrwx   1 root hadoop      16 Nov 22 15:09 libcurl.so.4 -> libcurl.so.4.3.0
-rwxr-xr-x   1 root root    347536 Apr  3  2017 libcurl.so.4.1.1
-rwxr-xr-x   1 root hadoop  435128 Nov 22 15:07 libcurl.so.4.3.0
[root@hadoop3 lib64]# yum clean all
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: base extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
[root@hadoop3 lib64]# yum

你可能感兴趣的:(Fatal Python error: pycurl: libcurl link-time version is older than compile-time version)