|
本帖最后由 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
|
|