[qmtest] Problem installing QMTest on Ubuntu dapper
Mark Eichin
eichin at metacarta.com
Sat Feb 10 17:24:00 UTC 2007
Stefan Seefeld <seefeld at sympatico.ca> writes:
> Tom Lloyd wrote:
>> HELP! I've downloaded the source as instructed. I have python2.4
>> installed and a very recent gcc.
>>
>> It got nicely through a lot of the build before stumbling on a missing
>> file, Python.h, which I can't find anywhere on my system ...
>>
>> tlloyd at tlloyd-laptop:~/tools/qmt/qm-2.3$ python setup.py install
>> running install
>> running build
>> running build_py
>> copying qm/test/qmtest.py -> build/lib.linux-i686-2.4/qm/test
>> running build_ext
>> building 'qm.sigmask' extension
>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
>> -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c qm/sigmask.c -o
>> build/temp.linux-i686-2.4/qm/sigmask.o
>> qm/sigmask.c:16:20: error: Python.h: No such file or directory
>
>> Can you help me?
>
> Your system is lacking the package that contains Python.h.
> Depending on what platform you are on, you may have to
>
> 1) install a 'python' package first.
> 2) install a 'python-devel' package.
> 3) download, compile, and install a python source package.
>
> Regards,
> Stefan
>
> --
>
> ...ich hab' noch einen Koffer in Berlin...
On ubuntu dapper,
$ apt-file search /Python.h
shows a bunch of things, but what matters is:
python2.2-dev: usr/include/python2.2/Python.h
python2.3-dev: usr/include/python2.3/Python.h
python2.4-dev: usr/include/python2.4/Python.h
Simply installing "python-dev" will get the right one for the default
python. (either with synaptic, or just "sudo aptitude install python-dev")
More information about the qmtest
mailing list