farcepest / MySQLdb1

MySQL database connector for Python (legacy version)
https://sourceforge.net/projects/mysql-python/
666 stars 318 forks source link

install of MySQLdb1 fails on centos 7 #143

Closed ichibrosan closed 5 years ago

ichibrosan commented 5 years ago

root@ichibrosan MySQLdb1-master]# python setup.py install sh: mysql_config: command not found Traceback (most recent call last): File "setup.py", line 17, in metadata, options = get_config() File "/root/MySQLdb1-master/setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "/root/MySQLdb1-master/setup_posix.py", line 25, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_config not found [root@ichibrosan MySQLdb1-master]#

I would really appreciate a clue where to go with this, I am going around in circles and getting dizzy.

vishal-yadav commented 5 years ago

First install mysql-client for your distribution which contains mysql_config. For CentOS 7, it will be mariadb-devel package.

ichibrosan commented 5 years ago

Thank you most kindly. Stress level reduced. :-)