Sunday, May 30, 2010

In Ubuntu the error: EnvironmentError: mysql_config not found :- Solved

I was trying to install mysql-python. But the it gives me a error like this:

EnvironmentError: mysql_config not found

Then I have tried to install the mysql client and try to install mysql-python again, the result is same.

After searching a lot, I have found a solution. Then I have followed the following steps:

in terminal:

sudo apt-get install libmysqlclient15-dev
sudo easy_install MySQL_python-1.2.3c1-py2.5-linux-i686.egg



And its works for me!!!!

Thanks
Sakib

4 comments:

  1. Hey I got it resolved via using Synaptics Package Manager. Installed python-mysqldb package and it worked like magic.

    ReplyDelete
  2. got following error:

    Reading http://pypi.python.org/simple/MySQL_python-1.2.3c1-py2.5-linux-i386.egg/
    Reading http://pypi.python.org/simple/MySQL-python-1.2.3c1-py2.5-linux-i386.egg/
    Couldn't find index page for 'MySQL_python-1.2.3c1-py2.5-linux-i386.egg' (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading http://pypi.python.org/simple/
    No local packages or download links found for MySQL-python-1.2.3c1-py2.5-linux-i386.egg
    error: Could not find suitable distribution for Requirement.parse('MySQL-python-1.2.3c1-py2.5-linux-i386.egg')

    i tried both with i686 and i386.

    ReplyDelete
  3. worked for me. Used pip to install mysql-python

    ReplyDelete
  4. Thank you!!! It works now :D

    ReplyDelete