2013-06-20 4 views
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입니다.

답변

0

당신이 즉

deb-src http://archive.ubuntu.com/ubuntu quantal main 

당신의 /etc/apt/sources.list 파일에있는 경우, 당신은 당신과 같은 소스를 apt-get을 사용하여 소스를 다운로드 할 수 있습니다 zip 파일을 다운로드 할 필요가 없습니다;

apt-get install debhelper 
apt-get source python-crypto 
apt-get build-dep python-crypto 

tar xvf python-crypto*debian*tar.gz 
cd python-crypto* 
debian/rules binary 
당신이 실행하기 전에 필요한 경우 사용자 정의 플래그를 추가 할 데비안/규칙 파일을 수정할 수 있습니다

빌드 후
debian/rules binary 

는 또한 가능

dpkg -i *.deb 

를 사용하여 패키지를 설치할 수 있습니다 완료 배포판 버전이 python-crypto의 최신 vesion을 설치하기위한 요구 사항을 충족시키지 못합니다.

+0

'apt-get source python-crypto'는'apt-get install python-crypto' 명령으로 얻을 수있는 crypto 버전 2.0.1을 생성합니다. Linux 환경이 다소 새로운 것입니다. 여기서 내가 잘못하고있는 것은 무엇입니까? – EarthWormBob