2011-12-25 43 views
17

Linux'umdaki kaynak koddan Linux'ta twisted yüklemeye çalıştım. O Makineye kök izniniz yok, BTWTwisted Kurulum Linux'ta Başarısız Oldu

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 

ve Python/usr/bin

, benim ev klasöründe yüklü değil: Bu komutu setup.py install kullanmak , aşağıda bir hata iletisiyle başarısız
+0

olası kopyası [ubuntu: Python'um var, fakat gcc, Python.h bulunamıyor] (http://stackoverflow.com/questions/8282231/ubuntu-i-have-python-but-gcc-cant-find- python-h) python3'ü kullanırsanız –

cevap

41

Derleyici, python geliştirme üstbilgileri bulamıyor. Sistem yöneticisine CentOS durumunda python-devel'u yüklemek veya Debian, Ubuntu ve türevleri üzerine python-dev'u yüklemesini istemek. Bu yardımcı olmalı.

+0

'python3-dev' –