2011-12-25 13 views
17

पर विफल हुआ मैंने अपने लिनक्स सेवर पर स्रोत कोड से लिनक्स पर मुड़ने की कोशिश की। BTWलिंक्ड इंस्टॉलेशन लिनक्स

twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory 
twisted/runner/portmap.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
twisted/runner/portmap.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
twisted/runner/portmap.c:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PortmapMethods’ 
twisted/runner/portmap.c: In function ‘initportmap’: 
twisted/runner/portmap.c:55: warning: implicit declaration of function ‘Py_InitModule’ 
twisted/runner/portmap.c:55: error: ‘PortmapMethods’ undeclared (first use in this function) 
twisted/runner/portmap.c:55: error: (Each undeclared identifier is reported only once 
twisted/runner/portmap.c:55: error: for each function it appears in.) 
error: command 'gcc' failed with exit status 1 

, मुझे लगता है कि मशीन पर रूट की अनुमति नहीं है, और Python मेरी घर फ़ोल्डर में स्थापित किया गया है, /usr/bin

नहीं: जब मैं इस आदेश setup.py install उपयोग करते हैं, उसके नीचे एक त्रुटि संदेश के साथ विफल
+0

संभावित डुप्लिकेट [उबंटू: मेरे पास पाइथन है, लेकिन जीसीसी पाइथन को नहीं ढूंढ सकता है] [http://stackoverflow.com/questions/8282231/ubuntu-i-have-python-but-gcc-cant-find- पायथन-एच) –

उत्तर

41

कंपाइलर पाइथन विकास शीर्षलेख नहीं ढूंढ सकता है। सिस्टम प्रशासक से CentOS के मामले में python-devel स्थापित करने या डेबियन, उबंटू और उनके डेरिवेटिव्स पर python-dev इंस्टॉल करने के लिए कह रहे हैं। यह मदद करनी चाहिए।

+0

'पायथन 3-देव' अगर आप पायथन 3 का उपयोग करते हैं –

संबंधित मुद्दे