I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however I cannot find my mysql_config file.
command and output:
~$ locate mysql_config
~$
I've heard/read that I need the libmysqlclient-dev package installed to be able to use mysql_config but I don't want to break my current production instance. I want to make sure installing this dev package is not going to have adverse effects on my current mysql databases.
Furthermore, where can I find the source download for libmysqlclient-dev to install manually? In my current situation (behind corporate proxy) I am not permitted to use apt-get's.
UPDATE
this is stemming from attempting to install python-MySQLdb from source. the setup.py file is requiring the mysql_config path and continues to break when trying to use anything but that file.
mysql_config provides you with useful information for compiling your MySQL client and connecting it to MySQL. It is a shell script, so it is available only on Unix and Unix-like systems.
How to fix Can't exec mysql_config: No such file or directory at Makefile.PL. This error occurs if the system cannot find MySQL client package. The install script "Makefile.PL" can be configured using lots of switches such as --cflags , --libs etc… cflags is a list of flags that are given to C compiler.
The mysql_config
executable is by default located in the bin directory of the MySQL server installation if you install it from precompiled binaries. But if you install it using apt-get
it may not exist on your server.
Try:
sudo apt-get install libmysqlclient-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With