First time here? Check out the FAQ!
1

EnvironmentError: mysql_config not found
 

I'm getting this error upon installation using either easy_install or setup.py

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
theactiveactor's avatar
167
theactiveactor
asked 14 years ago

Comments

see more comments

1 Answer

1

Based on what I found by googling the title of your question - you might need to install libmysql-dev package.

If you are on centos then you can try:

yum install libmysql-dev

On ubuntu:

apt-get install libmysql-dev

You are right - a better manual for the pre-requisite installation would be great.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

On recent Ubuntu versions the package libmysql-dev is not a valid choice anymore. Trying to install it on Ubuntu 11.04 I get this: unable to locate package libmysql-dev. In my case the EnvironmentError has gone installing libmysqlclient16-dev.
Guandalino's avatar Guandalino (13 years ago)
see more comments