MySQLDBAPI

Gregory Piñero gregpinero at gmail.com
Thu Jun 9 21:55:29 EDT 2005


I didn't see anything about mysql-devel package in the release notes. 
Is that something I can install all to my home directory?

On 6/9/05, deelan <ggg at zzz.it> wrote:
> Gregory Piñero wrote:
> > Hey guys,
> (...)
> >
> > My first question is if there is anything built into python as far as
> > a Database API that will work with MySQL.  It seems like there should
> > be because Python without it is kinda useless for web development.  If
> > there is then I'd probably prefer to use that instead.
> 
> there is not. mysqldb module is the answer.
> 
> (...)
> >>>cd MySQL-python-1.2.0
> >>>python2.4 setup.py install --home=~
> >
> > running install
> > running build
> > running build_py
> > running build_ext
> > building '_mysql' extension
> > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> > -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c
> > -o build/temp.linux-i686-2.4/_mysql.o
> > -I'/usr/local/mysql/include/mysql'
> > _mysql.c:41:19: mysql.h: No such file or directory
> > _mysql.c:42:26: mysqld_error.h: No such file or directory
> > _mysql.c:43:20: errmsg.h: No such file or directory
> > error: command 'gcc' failed with exit status 1
> 
> you need mysql-devel package installed to compile the "_mysql" extension.
> 
> just look a the release notes:
> <https://sourceforge.net/project/shownotes.php?group_id=22307&release_id=303257>
> 
> HTH.
> 
> --
> deelan, #1 fan of adriana lima!
> <http://www.deelan.com/>
> 
> 
> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list