Using MySQLdb Newbie

Skip Montanaro skip at pobox.com
Wed Sep 19 11:06:43 EDT 2001


    Jordan> I have installed mysql in /usr/loca/mysql, so I think the files
    Jordan> it's looking for should be in /usr/loca/mysql/includes and
    Jordan> /usr/loca/mysql/lib, is that right?

I would think you'd find them in /usr/loca/include/mysql and /usr/loca/lib. 

    Jordan> gcc -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math 
    Jordan> -fno-strength-reduce -fPIC -I/usr/loca/mysql/include -I/usr/include/python2.1 
    Jordan> -c _mysql.c -o build/temp.linux-i686-2.1/_mysql.o
    Jordan> _mysql.c:41:19: mysql.h: No such file or directory
    Jordan> _mysql.c:42:26: mysqld_error.h: No such file or directory
    Jordan> _mysql.c:43:20: errmsg.h: No such file or directory

Poke around /usr/loca:

    find /usr/loca -name mysql.h

and see what turns up.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list