I am trying configure a Django application to use mysql.
I want to use the mysql server available in my network and don't want to install a local copy.
But when I am trying to install mysqldb it needs mysql_config from Mysql!
What should I do if I want to use the mysql server in another machine?
sh: mysql_config: command not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "~/Dev/MySQL-python-1.2.3c1/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "~/Dev/MySQL-python-1.2.3c1/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Tried downloading the MySQL files and pointed to "mysql_config" and built mysqldb.
But when I tried to import mysqldb I get:
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dlopen(/tmp/MySQL_python-1.2.3c1-py2.5-macosx-10.5-i386.egg-tmp/_mysql.so, 2): Library not loaded: /usr/local/mysql/lib/libmysqlclient_r.15.dylib
Referenced from: /tmp/MySQL_python-1.2.3c1-py2.5-macosx-10.5-i386.egg-tmp/_mysql.so
Reason: image not found
Any hint on what the error is?
Thanks