Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find nor install mysql_config

I get this error from Inspircd

Can't exec "mysql_config": No such file or directory at /home/alpha/inspircd-2.0.19/make/utilities.pm line 392, <FLAGS> line 37.


Make sure you have pkg-config installed

In the case of gnutls configuration errors on debian,
Ubuntu, etc, you should ensure that you have installed
gnutls-bin as well as libgnutls-dev and libgnutls.

I've been looking all over the internet trying to find out how to remove the errors.

I have read multiple threads but no luck. I know I need the libmysqlclient-dev package but I can't for the life of me get it installed.

I run

sudo apt-get install libmysqlclient-dev

Also tried cleaning, "-f" and so on but I still get the error.

The following packages have unmet dependencies:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.40-0ubuntu1) but 5.5.41-0ubuntu0.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
like image 882
TheMeisterSE Avatar asked May 04 '15 15:05

TheMeisterSE


2 Answers

I tried it with aptitude

sudo aptitude install libmysqlclient-dev

then I downgraded libmysqlclient18 one version and now it works as it should.

like image 102
TheMeisterSE Avatar answered Nov 19 '22 17:11

TheMeisterSE


you tried remove all PPA ( Personal Package Archive )?

before try:

sudo apt-get autoremove && sudo aptitude update && sudo aptitude install libmysqlclient-dev

I see in Bugtrack MYSQL:

https://goo.gl/34NUgo

your ERROR is Bug know Bug #73522 Installation of libmysqlclient-dev fails if libmysqlclient18 is from percona

still unsolved:

status: Unsupported

environment: Ubuntu 14.04 LTS; Kernel 3.13, MySql 5.6

att

like image 2
Ton Melo Avatar answered Nov 19 '22 18:11

Ton Melo