2011-10-17 3 views
4

setproctitle을 설치하려고합니다. 나는 패키지를 다운로드하고 setup.py를 사용하여 설치를 시도했으며 easy_install을 시도했다. 정말 무슨 일이 일어나고 있는지 확실하지 않다setproctitle의 easy_install에서 gcc 오류가 발생했습니다.

:~$ sudo easy_install setproctitle 
Searching for setproctitle 
Reading http://pypi.python.org/simple/setproctitle/ 
Reading http://code.google.com/p/py-setproctitle/ 
Best match: setproctitle 1.1.2 
Downloading http://pypi.python.org/packages/source/s/setproctitle/setproctitle-1.1.2.zip#md5=52f99a78cbdd1b0036bf41b4512442e7 
Processing setproctitle-1.1.2.zip 
Running setproctitle-1.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-P9lA8V/setproctitle-1.1.2/egg-dist-tmp-T0jtZK 
In file included from src/spt.h:15, 
      from src/setproctitle.c:14: 
src/spt_python.h:14:20: error: Python.h: No such file or directory 
src/setproctitle.c:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
src/setproctitle.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
src/setproctitle.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
src/setproctitle.c:68: error: array type has incomplete element type 
src/setproctitle.c:69: error: ‘PyCFunction’ undeclared here (not in a function) 
src/setproctitle.c:69: error: expected ‘}’ before ‘spt_setproctitle’ 
src/setproctitle.c:70: error: expected ‘}’ before ‘spt_getproctitle’ 
src/setproctitle.c:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initsetproctitle’ 
error: Setup script exited with error: command 'gcc' failed with exit status 1 

: 어느 방법은 모두처럼 보이는 것을 가지고 올 작품. 이전에 쉽게 설치했습니다. 우분투 10.04를 새로 설치하고 있습니다. 어떤 도움을 주시면 감사하겠습니다.

답변

관련 문제