Compiling python-mysql for use on a nokia n800.
I got the libmysqlclient15 libraries that were released from the gmyth package.
I then downloaded MySQL-python-1.2.2.tar.gz
I changed site.cfg file and set threadsafe to false, then ran python2.5 setup.py build
I then changed site.cfg to set threadsafe to true, then ran python2.5 setup.py build again
after that all went well, I ran python2.5 setup.py install and this created an egg /usr/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-armv5tel.egg
I copied this to the nokia n800 in the same directory and installed libmysqlclient15_5.0.27_armel.deb and then I was able to import MySQLdb and use mysql.
added /usr/lib/mysql to /etc/ld.so.conf and ran ldconfig
posted at: 22:22 | path: /general | permanent link to this entry