在x86_64上安装gevent失败:“未定义的符号:evhttp_accept_socket”

2024-05-16 17:51:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将gevent安装在新的EC2 centos5.364位系统上。在

由于yum中可用的libevent版本对于另一个包(beanstalkd)来说太旧了,我使用以下命令手动编译/安装了libevent-1.4.13-stable

./configure --prefix=/usr && make && make install

这是安装gevent的输出:

^{pr2}$

我在一个本地VirtualBox实例(32位)上执行了完全相同的步骤,没有看到任何错误。在

我该怎么解决这个问题?在


Tags: install命令版本prefixmakeconfigureusr系统
1条回答
网友
1楼 · 发布于 2024-05-16 17:51:51

最简单的修复方法是克隆git repository,切换到wip-all分支,然后运行python setup.py build_libevent build install,它根据gevent静态地获取和构建libevent:

# git clone http://github.com/schmir/gevent.git
# cd gevent
# git branch -a
* upstream
  origin/HEAD
  origin/close-socket-cancel-event
  origin/pywsgi-without-basehttpserver
  origin/upstream
  origin/wip-all
  origin/wip-setup-config
# git checkout origin/wip-all
# python setup.py build_libevent build install

更多信息here。在

相关问题 更多 >