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
Make error
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
make error and rpm's
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.
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.
Make error, contd...
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]#
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]#
Yep that's it...
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 !
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 !