Make error

Support and queries relating to all previous versions of ZoneMinder
Locked
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

Make error

Post by timf »

Hi guys, new here, but a great resource / forum - reading the posts and FAQ have helped a lot, but now I'm stumped...
I have followed how to install a LAMP server per this link:

http://www.lamphowto.com/lamp.htm
I have Apache and Mysql running ok.

I have gotten thru' the ZM configure stage, but when I run 'make' it only runs for a few lines of text / seconds before complaining that Mysql does not name a type.

Running Fedora FC3.

Any suggestions ?

BTW I'm at work right now and will post more details later - if needed.

Thanks guys and keep up the great work.

Tim
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi,

I think that actual errors might be helpful, if you capture the output from make. Also what versions of things you have installed etc. As much detail as you can provide really. By the way there is an FC3 rpm you can use if you don't want to go through the hassle of a self-build.

Cheers

Phil
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

make error and rpm's

Post by timf »

Hi Phil,

Thanks for the quick reply - I'll post more info later today about what's going on, I'm sure it'll be something dumb on my behalf ;-)

Hopefully I'll not consume too much of your bandwidth.

I did start with the RPM install, but had a couple of problems with that as well, but I did get 3 of the 4 binaries generated.

So I thought I'd start over a fesh from the source - if nothing else I've learnt a ton of stuff I wouldn't have if I'd taken the 'easy' rpm route.

IMO RPM's are a great technique but I want to understand in detail how to make from source.

BTW I have the ZM source currently located in /home/timf/zm-1.2 and I'm logged in as root - is this ok ? Certainly configure and perl ./zmconfig.pl run ok.
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

Make error, contd...

Post by timf »

Hi Phil,
I'm running MySql version 4.0.24 and php version 4.3.10
I think I've set up the MySql DB correctly, but not 100% sure.
I also think I've set the configure correctly telling it where MySql resides, but looking at the line below it seems it can't find MySql.h in Mysql - could this be the problem ?

Thanks Tim (Brit in the US)
This is the console op when I run make:

[root@amdxp1800 zm-1.20.1]# make
make all-recursive
make[1]: Entering directory `/home/timf/zm-1.20.1'
Making all in src
make[2]: Entering directory `/home/timf/zm-1.20.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/bin/include -I/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".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: `MYSQL' does not name a type
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/timf/zm-1.20.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/timf/zm-1.20.1'
make: *** [all] Error 2
[root@amdxp1800 zm-1.20.1]#
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The error it is giving you that it can't locate mysql.h is a source header file. It's been abit since I did mysql build from source but should be installed <prefix>/include/mysql so if you set the prefix to /usr it would be /usr/include/mysql/mysql.h
Do a locate mysql.hand see where it turns up.
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

Yep that's it...

Post by timf »

just came to report that indeed I'd entered a wrong path for mysql.h - doh, I feel dumb :-)

A quick whereis told me it's located at/usr/local/mysql/include/mysql

Now let's see what else I can break....

Thanks anyway cordel !
Locked