MySQL_python install failed on Ubuntu 7.1

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Dec 17 16:31:52 EST 2007


Bruza a écrit :
> I installed MySQL 5.0.45 on Ubuntu 7.1 and download MySQL_python from
> Sourceforge (http://sourceforge.net/project/showfiles.php?
> group_id=22307). Then I untar the package and executed "python
> setup.py install". But I got compilation errors (see part of the
> failed messages below).
> 
> Looks like the installation tried to compile the _mysql extension and
> failed. Anybody knows a solution to this problem?

(snip)

> In file included from _mysql.c:29:
> pymemcompat.h:10:20: error: Python.h: No such file or directory

Looks like gcc doesn't find the Python's headers. You probably need to 
install the "python-dev" (or whatever it's named on Ubuntu) package, 
that is the one with the required stuff to compile and link C libs 
relying on CPython implementation.



More information about the Python-list mailing list