title: Getting python MySQLdb to run on Ubuntu
body: <p>I created a virtualbox with a fresh install of ubuntu 9.10.</p>
  
  <p>I am trying to get MySQLdb to run on python but I'm failing at the <code>import MySQLdb</code></p>
  
  <p>I first tried <code>sudo easy_install MySQL_python-1.2.3c1-py2.6-linux-i686.egg</code> and then  <code>sudo apt-get install python-mysqldb</code>.</p>
  
  <p>Both apparently installed ok, but gave me the following error message when in python I have the import line:</p>
  
  <pre><code>Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/MySQLdb/__init__.py", line 19, in &lt;module&gt;
  
  File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/_mysql.py", line 7, in &lt;module&gt;
  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
  </code></pre>
  
  <p>I have already installed MySQL and it is running, if that matters at all.
  I tried following <a href="http://forums.mysql.com/read.php?50,191097,193961#msg-193961" rel="noreferrer">this</a>, but failed in step 2</p>