Erste python-MySQLdb für die Ausführung auf Ubuntu

Erstellt habe ich eine virtualbox mit einer frischen Installation von ubuntu 9.10.

Ich versuche MySQLdb laufen auf python, aber ich versage bei der import MySQLdb

Zuerst habe ich versucht sudo easy_install MySQL_python-1.2.3c1-py2.6-linux-i686.egg und dann sudo apt-get install python-mysqldb.

Beide anscheinend installiert ok, aber gab mir die folgende Fehlermeldung, wenn python habe ich die import-Zeile:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/MySQLdb/__init__.py", line 19, in <module>

File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/_mysql.py", line 7, in <module>
File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/_mysql.py", line 6, in __bootstrap__
ImportError: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory

Ich habe schon MySQL installiert und ausgeführt wird, wenn das überhaupt eine Rolle spielt.
Ich habe versucht, nach diese, aber nicht in Schritt 2

InformationsquelleAutor greye | 2010-02-04
Schreibe einen Kommentar