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
|
<tt>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--<br>
/* Font Definitions */<br>
@font-face<br>
{font-family:"Cambria Math";<br>
panose-1:2 4 5 3 5 4 6 3 2 4;}<br>
@font-face<br>
{font-family:Calibri;<br>
panose-1:2 15 5 2 2 2 4 3 2 4;}<br>
/* Style Definitions */<br>
p.MsoNormal, li.MsoNormal, div.MsoNormal<br>
{margin:0in;<br>
margin-bottom:.0001pt;<br>
font-size:11.0pt;<br>
font-family:"Calibri","sans-serif";}<br>
a:link, span.MsoHyperlink<br>
{mso-style-priority:99;<br>
color:blue;<br>
text-decoration:underline;}<br>
a:visited, span.MsoHyperlinkFollowed<br>
{mso-style-priority:99;<br>
color:purple;<br>
text-decoration:underline;}<br>
span.EmailStyle17<br>
{mso-style-type:personal;<br>
font-family:"Calibri","sans-serif";<br>
color:windowtext;}<br>
span.EmailStyle18<br>
{mso-style-type:personal-reply;<br>
font-family:"Calibri","sans-serif";<br>
color:#1F497D;}<br>
.MsoChpDefault<br>
{mso-style-type:export-only;<br>
font-size:10.0pt;}<br>
@page WordSection1<br>
{size:8.5in 11.0in;<br>
margin:1.0in 1.0in 1.0in 1.0in;}<br>
div.WordSection1<br>
{page:WordSection1;}<br>
--></style><!--[if gte mso 9]><xml><br>
<o:shapedefaults v:ext="edit" spidmax="1026" /><br>
</xml><![endif]--><!--[if gte mso 9]><xml><br>
<o:shapelayout v:ext="edit"><br>
<o:idmap v:ext="edit" data="1" /><br>
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello all:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sorry to bother you, but can anyone give me some help with the following installation error? I’m not sure how to get this running:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>[root@snmp-sim pycrypto-2.6.1]# python /opt/pycrypto-2.6.1/setup.py build<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>running build<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>running build_py<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>running build_ext<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>running build_configure<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>building 'Crypto.Hash._MD2' extension<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c src/MD2.c -o build/temp.linux-i686-2.6/src/MD2.o<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/MD2.c:31:20: error: Python.h: No such file or directory<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/MD2.c:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>In file included from src/MD2.c:147:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:48: error: expected specifier-qualifier-list before ‘PyObject_HEAD’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c: In function ‘newALGobject’:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:69: warning: implicit declaration of function ‘PyObject_New’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:69: error: expected expression before ‘ALGobject’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c: At top level:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:76: error: expected ‘)’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALG_methods’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALGtype’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:304: error: array type has incomplete element type<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:305: error: ‘PyCFunction’ undeclared here (not in a function)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:305: error: expected ‘}’ before ‘ALG_new’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c: In function ‘init_MD2’:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:339: error: ‘PyObject’ undeclared (first use in this function)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:339: error: (Each undeclared identifier is reported only once<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:339: error: for each function it appears in.)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:339: error: ‘m’ undeclared (first use in this function)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:351: error: ‘ALGtype’ undeclared (first use in this function)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:351: error: ‘PyType_Type’ undeclared (first use in this function)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:352: warning: implicit declaration of function ‘Py_InitModule’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:356: error: ‘o’ undeclared (first use in this function)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:356: warning: implicit declaration of function ‘PyInt_FromLong’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:356: warning: implicit declaration of function ‘PyDict_SetItemString’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:356: warning: implicit declaration of function ‘PyModule_GetDict’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:356: warning: implicit declaration of function ‘Py_DECREF’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:360: warning: implicit declaration of function ‘PyErr_Occurred’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New";color:#1F497D'>error: command 'gcc' failed with exit status 1<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Jason Kojro-Badziak<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>
</tt>
|