$ 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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$ 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?
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.
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