Archlinux使用最新版goagent的几点注意(无法上传问题)
来源:互联网 发布:网络吞吐率 编辑:程序博客网 时间:2024/06/05 21:49
I、在Arch下,goagent使用的是python2而不是python
II、几日前的最新版本有个bug。。非ubuntu发行版的源中python-gevent(即Arch源中的python2-gevent)不是最新版,而这个版本的goagent是根据这个最新版开发的。因此上传不成功(客户端貌似可以继续用)。错误提示:
./proxy.py:20: UserWarning: libevent version mismatch: system version is '2.0.21-stable' but this gevent is compiled against '2.0.20-stable' import gevent
不知道最新版有没有解决这个问题。。估计是会等各发行版升级gevent吧
III、网上解决这个问题的办法是卸载从源上安装的gevent,手动编译安装:
$ git clone https://github.com/SiteSupport/gevent.git gevent$ cd ./gevent# yum install Cypthon# make# ./setup.py install
以上是fedora的解决办法。。但是正如我所说的第一点,这样做在Arch上是不行的。在Arch下需要一些改动。
首先是安装cython2而不是cython:
# pacman -S cython2
然后依然如上所示
$ git clone https://github.com/SiteSupport/gevent.git gevent
$ cd ./gevent
但是不能直接编译,应该:
$ vim Makefile
这时你会看到makefile开头处会有宏:
PYTHON ?= python
CYTHON ?= cython
这里把python改成python2,cython改成cython2(即直接在后面加上2)
保存推出
$ vim setup.py
你会看到开头的声明:
#!/usr/bin/env python
一样的,把python改成python2:
#!/usr/bin/env python2
保存退出。
之后编译安装:
$ make
# ./setup.py install
这样最新的gevent就安装完毕。可以成功上传了。。(上传貌似也不是一直顺利,我是两次才上传成功的)
$ cd <path of goagent dir.>
$ python2 uploader.zip
.....
- Archlinux使用最新版goagent的几点注意(无法上传问题)
- 解决goagent >= 2.1.7 无法上传的问题
- 上传网站要注意的几点
- 解决Goagent安装了pythong-gevent无法使用的问题
- 关于上传文件插件ajaxFileUpload使用的几点注意点
- javascript 高级编程(注意的几点问题)
- A1200刷机中注意的几点问题
- 异常处理注意的几点问题
- 关于闭包要注意的几点问题
- 使用密码文件的几点注意
- 使用SqlDataReader注意的几点
- 使用SqlDataReader注意的几点
- 使用SqlDataReader注意的几点
- 使用SqlDataReader注意的几点
- sqldatareader:使用SqlDataReader注意的几点
- JSPX使用的几点注意
- switch使用需要注意的几点
- c++ shared_ptr使用的几点注意
- 系统调用-open函数的oflags参数引起的调试经历
- hdu 4020 hash的精妙运用
- tic-tac-toe Minimax(极小化极大算法)
- android写文件到sd卡要有权限声明
- u-boot分析(2)
- Archlinux使用最新版goagent的几点注意(无法上传问题)
- js正则表达式初学
- 条件随机场(之计算联合概率分布的有效模型)
- Spring in Action 3 - pointcut
- U-boot分析(3)
- 隐藏1:N关系和工具
- 罗浩:屌丝IT创业者的降级论
- [Win32]一个调试器的实现(四)读取寄存器和内存
- Verilog 流水线加法器