hit9 / skylark

No longer maintained. A micro python orm for mysql and sqlite3.

Home Page:http://skylark.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mysql_config not found

diego opened this issue · comments

Trying to install CURD.py i get this error

Obtaining CURD.py from git+git://github.com/hit9/CURD.py.git#egg=CURD.py
Updating ./src/curd.py clone
Running setup.py egg_info for package CURD.py

Downloading/unpacking MySQL-python (from CURD.py)
Downloading MySQL-python-1.2.4.zip (113kB): 113kB downloaded
Running setup.py egg_info for package MySQL-python
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Extracting in /tmp/tmp6P0YBX
Now working in /tmp/tmp6P0YBX/distribute-0.6.28
Building a Distribute egg in /private/tmp/pip-build-root/MySQL-python
/private/tmp/pip-build-root/MySQL-python/distribute-0.6.28-py2.7.egg
sh: mysql_config: command not found
Traceback (most recent call last):
File "", line 16, in
File "/private/tmp/pip-build-root/MySQL-python/setup.py", line 18, in
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz

Extracting in /tmp/tmp6P0YBX

Now working in /tmp/tmp6P0YBX/distribute-0.6.28

Building a Distribute egg in /private/tmp/pip-build-root/MySQL-python

/private/tmp/pip-build-root/MySQL-python/distribute-0.6.28-py2.7.egg

sh: mysql_config: command not found

Traceback (most recent call last):

File "", line 16, in

File "/private/tmp/pip-build-root/MySQL-python/setup.py", line 18, in

metadata, options = get_config()

File "setup_posix.py", line 43, in get_config

libs = mysql_config("libs_r")

File "setup_posix.py", line 25, in mysql_config

raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

this is an error due to mysql-python. but not CURD.py. please take a look at this question: http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found