CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 8471|回复: 4

cp2运行gangent出错,不知道怎么更新gevent

[复制链接]
发表于 2015-4-5 16:57:38 | 显示全部楼层 |阅读模式
本帖最后由 zixi0007 于 2015-4-5 17:05 编辑

root@cubieboard2:/soft/goangent/local# python proxy.py
WARNING - [Apr  5 16:54:51] Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead.
WARNING - [Apr  5 16:54:51] *NOTE*, please upgrade to gevent 1.1 as possible
------------------------------------------------------
GoAgent Version    : 3.2.3 (python/2.7.3 gevent/0.13.6 pyopenssl/0.13)
Listen Address     : 127.0.0.1:8087
GAE Mode           : https (TLSv1)
GAE APPID          : id已经隐藏了
Pac Server         : http://192.168.1.188:8086/proxy.pac
Pac File           : file:///soft/goangent/local/proxy.pac
------------------------------------------------------

我看了一下我的cb是python是2.7的版本 运行的是最新的goagent。



百度搜索说安装pycrypto但是我安装出错。

root@cubieboard2:/soft/goangent/local# pip install pycrypto
Collecting pycrypto
  Using cached pycrypto-2.6.1.tar.gz
Installing collected packages: pycrypto
  Running setup.py install for pycrypto
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for __gmpz_init in -lgmp... no
    checking for __gmpz_init in -lmpir... no
    checking whether mpz_powm is declared... no
    checking whether mpz_powm_sec is declared... no
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for inttypes.h... (cached) yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking for stdint.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for inline... inline
    checking for int16_t... yes
    checking for int32_t... yes
    checking for int64_t... yes
    checking for int8_t... yes
    checking for size_t... yes
    checking for uint16_t... yes
    checking for uint32_t... yes
    checking for uint64_t... yes
    checking for uint8_t... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for memmove... yes
    checking for memset... yes
    configure: creating ./config.status
    config.status: creating src/config.h
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Hash._MD2' extension
    gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-armv7l-2.7/src/MD2.o
    src/MD2.c:31:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-i7Euld/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bKfoqd-record/install-record.txt --single-version-externally-managed --compile:
    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-armv7l-2.7

    creating build/lib.linux-armv7l-2.7/Crypto

    copying lib/Crypto/pct_warnings.py -> build/lib.linux-armv7l-2.7/Crypto

    copying lib/Crypto/__init__.py -> build/lib.linux-armv7l-2.7/Crypto

    creating build/lib.linux-armv7l-2.7/Crypto/Hash

    copying lib/Crypto/Hash/MD5.py -> build/lib.linux-armv7l-2.7/Crypto/Hash

    copying lib/Crypto/Hash/SHA256.py -> build/lib.linux-armv7l-2.7/Crypto/Hash

    copying lib/Crypto/Hash/hashalgo.py -> build/lib.linux-armv7l-2.7/Crypto/Hash

    copying lib/Crypto/Hash/SHA512.py -> build/lib.linux-armv7l-2.7/Crypto/Hash
省略一部分无用内容
    checking for GNU libc compatible malloc... yes

    checking for memmove... yes

    checking for memset... yes

    configure: creating ./config.status

    config.status: creating src/config.h

    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

    building 'Crypto.Hash._MD2' extension

    creating build/temp.linux-armv7l-2.7

    creating build/temp.linux-armv7l-2.7/src

    gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-armv7l-2.7/src/MD2.o

    src/MD2.c:31:20: fatal error: Python.h: No such file or directory

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    ----------------------------------------
    Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-i7Euld/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bKfoqd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-i7Euld/pycrypto




回复

使用道具 举报

发表于 2015-4-6 02:16:36 | 显示全部楼层
warning而已,应该是已经运行了
gevent要下载一个重新装一下
后面的库安装出错是没有装python-dev包
回复 支持 反对

使用道具 举报

发表于 2015-4-6 02:17:46 | 显示全部楼层
现在打算怎么用goagent,Google的地址都被封了,除非有IPv6。我只有在IPv6下才能用goagent了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-6 14:29:12 | 显示全部楼层
fockez 发表于 2015-4-6 02:17
现在打算怎么用goagent,Google的地址都被封了,除非有IPv6。我只有在IPv6下才能用goagent了
...

已经解决了,我更新了python-dev和gevent就好了。
我用的联通宽带goagent可以用。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-23 05:40 , Processed in 0.021130 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部