1
Ubuntu 10.04 LTS에 최신 Python 암호화 모듈을 설치할 수 없습니다. sudo apt-get remove python-crypto
으로 2.0.1 이전 버전의 Crypto를 제거하고 버전 2.6을 계속 설치했습니다. Python Crypto 설치 문제
sudo python setup.py install
로 설치 프로그램을 실행,하지만 난 얻을 :
running install
running build
running build_py
running build_ext
running build_configure
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Cipher._AESNI' extension
gcc -std=gnu99 -fno-strict-aliasing -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -fPIC -Isrc/ -I/usr/include/python2.6 -c src/AESNI.c -o build/temp.linux-i686-2.6/src/AESNI.o -maes
In file included from /usr/lib/gcc/i486-linux-gnu/4.4.3/include/wmmintrin.h:31,
from src/AESNI.c:26:
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/emmintrin.h: In function \u2018aes128_keyexpand\u2019:
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/emmintrin.h:1380: error: the last argument must be an 8-bit immediate
error: command 'gcc' failed with exit status 1
내가
python-dev
을 설치했지만 아무런 영향을 미치지 않습니다.
apt-get install python-crypto
은 Crypto 2.0.1을 설치하기 만합니다.
내 Python 버전은 2.6.5입니다.
'apt-get source python-crypto'는'apt-get install python-crypto' 명령으로 얻을 수있는 crypto 버전 2.0.1을 생성합니다. Linux 환경이 다소 새로운 것입니다. 여기서 내가 잘못하고있는 것은 무엇입니까? – EarthWormBob