Re: [qmtest] Problem installing QMTest on Ubuntu dapper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qmtest] Problem installing QMTest on Ubuntu dapper



Thank you Mark and Stefan for the prompt response.

I have python 2.4, but didn't realize I didn't have python-dev as well.
I have since downloaded qmtest with synaptic, and it is working fine.

Will keep you posted if I have further problems.

Thanks again.

Tom Lloyd

On Sat, 2007-02-10 at 12:24 -0500, Mark Eichin wrote:
> Stefan Seefeld <seefeld@xxxxxxxxxxxx> 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@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")