编译Python源文件,error: missing Python.h, limits.h stdio.h ...

前两天装一个python软件库 (4suite),ubuntu 8操作系统,需要自己编译源文件,结果编译的时候总是报错,缺少一堆库文件,解决如下:

operating system: ubuntu 8

python 2.5.2

--------------install error: missing Python.h----------------
To install python headers, you need the python2.5-dev package:

command:

sudo apt-get install python2.5-dev

---------------install error: missing limits.h  stdio.h .…..-------------------------------------------

install libc6-dev package   for c headers

command:

sudo apt-get install libc6-dev

你可能感兴趣的:(c,python,command,ubuntu,System)