error during make

Support and queries relating to all previous versions of ZoneMinder
Locked
cdw1
Posts: 7
Joined: Sun Jul 13, 2003 6:30 am

error during make

Post by cdw1 »

Would someone please look at this error and point me in the right direction?
I'm terrible at software installation.
I'm installing on Mandrake 10.0, community edition.
Please let me know if I can provide any more detail.
Thanks.

[root@localhost zm-1.19.4]# make
make all-recursive
make[1]: Entering directory `/home/user/zoneminder/zm-1.19.4'
Making all in src
make[2]: Entering directory `/home/user/zoneminder/zm-1.19.4/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr//include -I/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" \
-c -o zmc.o `test -f 'zmc.cpp' || echo './'`zmc.cpp; \
then mv ".deps/zmc.Tpo" ".deps/zmc.Po"; \
else rm -f ".deps/zmc.Tpo"; exit 1; \
fi
In file included from zmc.cpp:25:
zm_db.h:23:25: mysql/mysql.h: No such file or directory
In file included from zmc.cpp:25:
zm_db.h:27: error: syntax error before `;' token
In file included from zm_zone.h:27,
from zm_monitor.h:29,
from zmc.cpp:26:
zm_event.h:32:25: mysql/mysql.h: No such file or directory
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/user/zoneminder/zm-1.19.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/zoneminder/zm-1.19.4'
make: *** [all] Error 2
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post by davide »

You need the development installation of MySQL.
from http://www.zoneminder.com/fileadmin/dow ... EADME.html:
ZoneMinder needs a couple of things to work.

Firstly, it uses MySQL so you'll need that. In order to compile you need to make sure you have a development installation and not just a runtime; this is because it needs to use the MySQL header files. If you are running an RPM based distribution then it’s probably worth installing all the pure mysql rpm files to be sure you have the right ones.

....
does this help?

davide,
cdw1
Posts: 7
Joined: Sun Jul 13, 2003 6:30 am

Thanks Davide!

Post by cdw1 »

Thanks Davide!

"urpmi mysql-devel" was the command to fix my problem.
Locked