blob: 73fef603755692a75a2c60a9eaaa3fd3a4203bea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<tt>
<div dir="ltr">Hi Dave,<div><br></div><div><br></div><div style>You are missing the python3-dev package, or whatever it's called in Fedora-Land. That contains the headers that the compiler needs to compile C extensions for Python (specifically, Python.h). Without that header information, you can't compile the C extensions that are part of PyCrypto (or any other Python module that makes use of compiled extensions).</div><br>
<div style><br></div><div style>Basically, you just need to find and install that package from the Fedora repos.</div><div style><br></div><div style>Hope that helps,</div><div style>Philip Horger</div></div><div class="gmail_extra"><br>
<br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 12:10 AM, Dave Pawson <span dir="ltr"><<a href="mailto:dave.pawson@gmail.com" target="_blank">dave.pawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
setup is Fedora 19, 64 bit.<br><br>
<br><br>
cmd was pip-python3 install pycrypto<br><br>
<br><br>
result<br><br>
<br><br>
...<br><br>
creating build/temp.linux-x86_64-3.3<br><br>
<br><br>
creating build/temp.linux-x86_64-3.3/src<br><br>
<br><br>
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -pipe<br><br>
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector<br><br>
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic<br><br>
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer<br><br>
-Isrc/ -I/usr/include/python3.3m -c src/MD2.c -o<br><br>
build/temp.linux-x86_64-3.3/src/MD2.o<br><br>
<br><br>
src/MD2.c:31:20: fatal error: Python.h: No such file or directory<br><br>
<br><br>
#include "Python.h"<br><br>
<br><br>
^<br><br>
<br><br>
compilation terminated.<br><br>
<br><br>
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.<br><br>
<br><br>
error: command 'gcc' failed with exit status 1<br><br>
<br><br>
Any suggestions please?<br><br>
pycrypto installed fine on python 2.7<br><br>
<br><br>
regards<br><br>
<span class="HOEnZb"><font color="#888888"><br><br>
--<br><br>
Dave Pawson<br><br>
XSLT XSL-FO FAQ.<br><br>
Docbook FAQ.<br><br>
<a href="http://www.dpawson.co.uk" target="_blank">http://www.dpawson.co.uk</a><br><br>
_______________________________________________<br><br>
pycrypto mailing list<br><br>
<a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a><br><br>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto" target="_blank">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a><br><br>
</font></span></blockquote></div><br></div><br>
</tt>
|