Mon, 05 May 2008

python-mysql on maemo

Compiling python-mysql for use on a nokia n800.

I got the libmysqlclient15 libraries that were released from the gmyth package.
http://sourceforge.net/project/showfiles.php?group_id=177106&package_id=225202

I then downloaded MySQL-python-1.2.2.tar.gz

export LD_LIBRARY_PATH=/usr/lib/mysql
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


Powered by PyBlosxom | RSS 2.0