尝试运行导入MySQLdb的Python脚本。我已经yum update libgcrypt
了。
Traceback (most recent call last):
File "/var/www/python/ig/ig-post.py", line 12, in <module>
import MySQLdb
File "/usr/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/user/.linuxbrew/lib/libcrypt.so.1)
也许有帮助:
# yum info libgcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ircam.fr
* epel: mirrors.ircam.fr
* extras: centos.mirror.fr.planethoster.net
* updates: centos.quelquesmots.fr
Installed Packages
Name : libgcrypt
Arch : x86_64
Version : 1.4.5
Release : 12.el6_8
Size : 524 k
Repo : installed
From repo : base
Summary : A general-purpose cryptography library
URL : http://www.gnupg.org/
License : LGPLv2+
Description : Libgcrypt is a general purpose crypto library based on the code used
: in GNU Privacy Guard. This is a development version.
Available Packages
Name : libgcrypt
Arch : i686
Version : 1.4.5
Release : 12.el6_8
Size : 228 k
Repo : base
Summary : A general-purpose cryptography library
URL : http://www.gnupg.org/
License : LGPLv2+
Description : Libgcrypt is a general purpose crypto library based on the code used
: in GNU Privacy Guard. This is a development version.
答案 0 :(得分:0)
您有一个本地构建的/home/user/.linuxbrew/lib/libcrypt.so.1
,它是在GLIBC-2.14(或更新版本)的系统上构建的。
该库与您尝试运行的系统不兼容(具有GLIBC-2.13或更早版本)。
您需要从/home/user/.linuxbrew/lib
中删除LD_LIBRARY_PATH
(或者您用来提取它的任何机制),或者完全删除/home/user/.linuxbrew/lib/libcrypt.so.1
。