博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装gevent错误/gevent/core.so: undefined symbol: event_global_current_base_ 的解决方案
阅读量:7176 次
发布时间:2019-06-29

本文共 1103 字,大约阅读时间需要 3 分钟。

在通过python setup.py install 安装gevent后,使用gevent时提示如下错误:

# python2.6
Python 2.6.7 (r267:88850, Sep  6 2011, 08:13:16)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gevent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/gevent/__init__.py", line 41, in <module>
  File "build/bdist.linux-x86_64/egg/gevent/core.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/gevent/core.py", line 6, in __bootstrap__
ImportError: /root/.python-eggs/gevent-0.13.6-py2.6-linux-x86_64.egg-tmp/gevent/core.so: undefined symbol: event_global_current_base_
>>>
undefined symbol: event_global_current_base_ 究竟是怎么回事?
gevent依赖于libevent,而且gevent对libevent1.4支持不怎么地,怀疑是编译安装gevent时使用的是libevent1.X
通过 ldd 查看究竟使用的是哪个libevent
ldd /gevent-0.13.6/gevent/core.so

如果机器上安装有多个libevent版本,则最好在编译安装gevent时指定libevent路径,

例如:
python2.6 setup.py build  --libevent /opt/uploadavml/libevent-2.0.17-stable
python2.6 setup.py install

强烈建议将gevent搭配libevent2.0.17及其以上版本使用,测试时发现gevent搭配libevent2.0.10是出问题的!!

转载地址:http://amfzm.baihongyu.com/

你可能感兴趣的文章
Android——自定义Dialog
查看>>
编码原理(附二)----二值化
查看>>
技能大赛规程
查看>>
System Center Configruation Manager 2016 安装部署独立站点
查看>>
涓栫晫鐢靛奖绠€鍙测€?
查看>>
Redis入门系列之队列和发布订阅模式
查看>>
Ceph学习笔记
查看>>
unity自带的水
查看>>
LVS搭建过程中需要用到的命令-- ipvsadm
查看>>
【No.9 内存泄漏了么】
查看>>
想成为一名DBA 至少要具备哪些技术
查看>>
CentOS 编译安装php5.5, 并配制支持apach,nignx核心代码
查看>>
第3章 初探HTML
查看>>
基于S/MIME V2标准的加密和解密的控件software IP*Works! S/MIME
查看>>
mysql 备份数据库脚本
查看>>
Linux文件系统上的特殊权限
查看>>
在Eclipse中在线安装TestNG
查看>>
遇到的一些面试题
查看>>
MPLS ××× option B标签查看
查看>>
iptables 规则的保存
查看>>