Menu

sh: mysql_config: not found

Help
IJajan
2008-12-01
2012-09-19
  • IJajan

    IJajan - 2008-12-01

    $ python setup.py install
    sh: mysql_config: not found
    Traceback (most recent call last):
    File "setup.py", line 16, in <module>
    metadata, options = get_config()
    File "/home/binger/桌面/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config
    libs = mysql_config("libs_r")
    File "/home/binger/桌面/MySQL-python-1.2.2/setup_posix.py", line 24, in mysql_config
    raise EnvironmentError, "%s not found" % mysql_config.path
    EnvironmentError: mysql_config not found

    what problem?

     
    • DScher

      DScher - 2009-01-24

      You may just not have a mysql_config on your path. I had the same problem before clearing it up by making a symlink. No one can help you unless you actually share your OS and such. If by chance you're running OS X you can just make a symlink by finding your mysql_config(if you have MySQL installed) which may be found at:

      /usr/bin/mysql/bin

      by typing something like:

      sudo ln /usr/bin/mysql/bin/mysql_config mysql_config

      which should add it to your /usr/local/bin path.

      Next time try and offer more in the way of your settings so people can help you please.

       
    • Leo Hourvitz

      Leo Hourvitz - 2008-12-01

      Hi,

      mysql_config is a command that's installed as part of installing MySQL. It needs to be installed in some directory on your $path so that MySQLdb can install correctly. It looks like you don't have it installed, so you should do a complete MySQL installation.

      MySQLdb depends on the MySQL libraries and headers already being installed in order to build.

      Leo

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.