PDA

View Full Version : 1.3.3 ./configure problem


wmo
06-03-2007, 09:20
Hi all,

after having troubles with 1.3.2 (and no anwsers :( ) i downloaded 1.3.3 and followed the "manual"

Now i've set-up mysql 5.0.32, created a user zabbix and ran the:

shell> mysql -u<username> -p<password>
mysql> create database zabbix;
mysql> quit;
shell> cd create/mysql
shell> cat schema.sql |mysql -u<username> -p<password> zabbix
shell> cd ../data
shell> cat data.sql |mysql -u<username> -p<password> zabbix
shell> cat images.sql |mysql -u<username> -p<password> zabbix

This all goes without problems.
So now i want to do the following:
shell> ./configure --enable-server --enable-agent --with-mysql --with-net-snmp

And then i gives me this error:

configure: error: no acceptable C compiler found in $PATH

When i look in the log i have no idea what to look for. It's a normal Debian installation and version 1.1.6 has been running on it for weeks without any problems.

So, again, please help me out here.

medic
06-03-2007, 09:28
check if you have gcc and g++ installed.
you have to have to get an anser from "gcc -v"

Debian usually doesnt install gcc and g++, because it doesn't see any need for it.

vadim
06-03-2007, 09:48
Hello all!

Who knows, why in version 1.3.3 i can not build agent without server.
Compilation process exited with error during sender compiling.

Can anyone help me?

wmo
07-03-2007, 13:09
Well i got a bit further now but .....

i get the following:

checking for mysql_config ..... no
configure: error: Not found MySQL Library

I got MySQL 5.0.32 installed, it contains an db zabbix and i followed the cat schema.sql, cat data.sql, and cat images_mysql.sql commands. These were all without errors.

But now it gives me this MySQL Library error. :(

anyone here that can help me out again?

medic
07-03-2007, 15:02
try to find the program mysql_config
if you dont have it, get it from somewhere and install ist ..

medic
07-03-2007, 15:03
Hello all!

Who knows, why in version 1.3.3 i can not build agent without server.
Compilation process exited with error during sender compiling.

Can anyone help me?
you usually can .. the error you run into is zabbix_sender, which builds after zabbix_agent
so you already have build zabbix_agent

marcele
07-03-2007, 23:38
I get this error also when just trying to compile the agent. Anyone have a fix for this ?

medic
08-03-2007, 11:04
the agent doesn't need mysql, therefor just skip it ..
use ./configure --enable-agent

marcele
08-03-2007, 14:35
the agent doesn't need mysql, therefor just skip it ..
use ./configure --enable-agent

Actually that is what I typed .. I still get this error.

./configure --enable-agent

compiles for a while then :

No rule to make target `../libs/zbxcomms/libzbxcomms.a', needed by `zabbix_sender'

medic
08-03-2007, 20:56
if you need zabbix_sender, you have to compile everything (sadly), if you dont, your agentd is finished .. you can make install it ...

It's a bug in the makefile, already known, but not yet fixed.