PDA

View Full Version : Setup: error: invalid MySQL Directory


oldstu12a4
01-05-2007, 01:46
Hi everyone,
I'm a totally super noob in this. I've never work with Linux before. As requested by my supervisor, he wanted me to install Zabbix onto a Fedora 6 box we have in the office. I follow the instruction, install ... oh god.. tons of small things ..., then when I ran the following command (i'm sorry if I use the wrong wording, i don't even understand the command, i just follow instruction :( )

./configure --enable-server --with-mysql --with-net-snmp –with-jabber –with-libcurl # for MySQL + Jabber + WEB monitoring

I use MySQL by the way.
I got the error:

Invalid MySQL Directory - unable to find mysql.h

I googled for MySQL Header, then download a few .rpm from mysql.com. All of them got error, either conflict with something, or just not working. I have one sample here:
Error updating software:
[('file /usr/bin/mysql_config from install of MySQL-devel-5.0.37-0 conflicts with file from pacjage mysql-5.0.27-1.fc6 ... ..

Please help me. I have spent 5 hours on this already. I really don't know what to do.

frustrated1
27-05-2007, 01:08
I have the same problem. I am trying to install on solaris 9 running mysql.
mysql installation is already running another database without any problems but I am getting the same error below..

From what I can find on google I may need to install some mysql-devel package but I cannot find this for solaris... Any ideas?

VeryNewbie
30-05-2007, 12:18
I have a similar problem... I'm trying to install Zabbix 1.4 in my AIX5.3 and I always get the same error when I try to config ( ./configure --prefix=/usr/local/zabbix --enable-server --enable-static --with-mysql=/blabla/blabla/mysql/include --with-libcurl )

configure: error: Not found MySQL library

I'm trying with all directorys possible, with and without --enable-static... but I always get the same error... I think this is an AIX issue, because as I installed Zabbix 1.1.6 happened the same but somehow I could install... now I can't :(

any sugestion?

TIA

Eugene
31-05-2007, 11:10
Please see `./configure --help`

--with-mysql[=ARG] use MySQL client library [default=no], optionally specify path to mysql_config

NB-beheer
31-05-2007, 18:19
What if there is no mysql_config? We installed mysql using a rpm.
How to install?

Alexei
01-06-2007, 13:24
mysql_config is a binary provided with MySQL client or server.

VeryNewbie
01-06-2007, 13:48
When I point to mysql_config it works, but now I have problems with the "z lib".

checking for main in -lz ... no
configure: error: Not found z library

I made a shell script and tried to configure Zabbix, but it doesn't work...

#!/usr/bin/ksh

export LDFLAGS="-L/.../zlib/lib"
export OBJECT_MODE=64
export CC=gcc
export CFLAGS=-maix64

./configure --prefix=/usr/local/zabbix --enable-server --enable-static --with-my
sql=/mysql/bin/mysql_config --with-libcurl=/usr/local/zabbix/curl --w
ith-net-snmp=/net-snmp/net-snmp-5.2/include/net-snmp

what should I do?

I'm trying to install in an AIX 5.3

TIA

pymouse
01-06-2007, 14:40
Error updating software:
[('file /usr/bin/mysql_config from install of MySQL-devel-5.0.37-0 conflicts with file from pacjage mysql-5.0.27-1.fc6 ... ..

Please help me. I have spent 5 hours on this already. I really don't know what to do.

try with the same version devel-5.0.27-0 and not devel-5.0.37-0
or update your MySQL version to 5.0.41.0 you have all pkg on this page :
http://dev.mysql.com/downloads/mysql/5.0.html

for FC6 : https://www.redhat.com/archives/fedora-package-announce/2006-November/msg00183.html
or
http://rpm.pbone.net/index.php3/stat/14/idka/54596/datan/2007-05-12

good luck!

Treitor
04-06-2007, 16:20
I had the same error in .configure:

checking for mysql_config... no

I just install :

rpm -ivh MySQL-devel-standardXXXXX.rpm

and than resolve the problem.