make -- Error 1 and Error2

Support and queries relating to all previous versions of ZoneMinder
Locked
moontaurus
Posts: 29
Joined: Fri Aug 05, 2005 9:46 pm

make -- Error 1 and Error2

Post by moontaurus »

Aye me, it's now officially the wee hours. Okay. I've made it over three obstructions so far. Now here's the fourth. I'm following the readme to the letter. I've finished zmconfig.pl, then run 'perl zmconfig.pl -noi'. Now I've run make.... it errorred out -- here's its output. What. Went. Wrong. Now. Thank you somebody, my angel!!

make all-recursive
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3'
Making all in src
make[2]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/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
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3'
make: *** [all] Error 2

Also, for the heck it I then ran 'make install' and got the following output. I assume this is because the 'make' wizardry went badly? Thank you!

Making install in src
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/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
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
make[1]: *** [zmc.o] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make: *** [install-recursive] Error 1
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

go with the live cd mate or wait for another proper zm guru to reply to this. Cordel has made a yum install list that will sort out your depandancies for you i think but i havnt tried this. I will but im going to do a minimum intsall of fc3 and then do this to see how much lighter on hardware it is

James
moontaurus
Posts: 29
Joined: Fri Aug 05, 2005 9:46 pm

Stuck at make

Post by moontaurus »

Thanks again for your reply, James! Sadly, I need my Suse 9.1 box for other purposes too, so Live CD won't do me this time around.

Is Cordel's "yum install list" published somehwere? What's fc3? Cheers

(It's 3 am now here in Cali. Time to go to bed and pick up again on the good fight tomorrow.... I... will.... get.... this.... running.... Meantime, any 'make' snafu wisdom for this newbie from any wise ones out there much appreciated!)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

sorry fc3 is fedora core 3 (redhat it hink) my limited experience with linux tells me that yum setup ofr fc3 wont 'just work' on suse but i maybe wrong

James

PS Good luck
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: make -- Error 1 and Error2

Post by cordel »

moontaurus wrote: if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/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
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory

make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/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
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
Looks like you set the option to compile with ffmpeg, or have ffmpeg installed and not the librarys.
So first question,
Do you have ffmpeg installed?
If so did you install ffmpeg-devel?
Regards,
Cordel
moontaurus
Posts: 29
Joined: Fri Aug 05, 2005 9:46 pm

ffmpeg-devel for Suse 9.1

Post by moontaurus »

I should have stayed in one thread, I'm sorry. When MySQL got solved I got excited. Yes, I installed ffmpeg from sourgeforge. I just now looked for ffmpeg-devel, found rpm for Suse 9.3 (not 9.1 which is what I have) and Yast screams that I'm missing all kinds of dependencies. Is it suicidal to attempt to install ffmpeg-devel for 9.3? In the meantime, right now, I'll remove '--with-ffmpeg' from configure command and see how it goes....
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I think there may be currently a bug in zm. Try with out the ffmpeg in the config line and if it still complains about ffmpeg post and let us know.
You may have to remove ffmpeg to get ZM to build if it is still complaining about ffmpeg.
Regards,
Cordel
moontaurus
Posts: 29
Joined: Fri Aug 05, 2005 9:46 pm

Default user:group apache:apache not valid? Then who?

Post by moontaurus »

Okay, once again, thank you! So, with ffmpeg removed from configure command, make WORKED. Phew. Maybe good news for you re: the bug?

Now. 'make install' doesn't work. Doesn't like the default apache:apache chosen by configuration. I had fed the perl config thingie the name "boop" for db access (and used that when running 'mysql mysql'). So I tried config AGAIN this time 'with-webuser=boop'. But 'make install' still sad it's doesn't like the default group of 'apache'. (And I have no idea if this is the same webuser it needs to have anway, right?) What group should I use? What user? How do I find out? Where am I? Who am I? I want my mommy.

_________
Here is the output of 'make install' using this latest attempt at a configure statement, errors at end:

./configure --with-mysql=/usr --with-webdir=/disk2/www/zm --with-cgidir=/srv/www/cgi-bin --with-webuser=boop

'make install'

linux:/home/boop/installs/zoneminder/zm-1.21.3 # make install
Making install in src
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make[2]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'zmc' '/usr/local/bin/zmc'
/usr/bin/install -c 'zma' '/usr/local/bin/zma'
/usr/bin/install -c 'zmu' '/usr/local/bin/zmu'
/usr/bin/install -c 'zms' '/usr/local/bin/zms'
/usr/bin/install -c 'zmf' '/usr/local/bin/zmf'
/usr/bin/install -c 'zmfix' '/usr/local/bin/zmfix'
make install-exec-hook
make[3]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
( cd /usr/local/bin; mkdir -p /srv/www/cgi-bin; mv zms /srv/www/cgi-bin )
( cd /srv/www/cgi-bin; chown boop:apache zms; ln -f zms nph-zms )
chown: `boop:apache': invalid group
( cd /usr/local/bin; chmod u+s zmfix )
make[3]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
Making install in web
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/web'
Making install in graphics
make[2]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/web/graphics'
make[3]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/web/graphics'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/disk2/www/zm/graphics" || mkdir -p -- "/disk2/www/zm/graphics"
/usr/bin/install -c -m 644 'arrow-d.gif' '/disk2/www/zm/graphics/arrow-d.gif'
/usr/bin/install -c -m 644 'arrow-dl.gif' '/disk2/www/zm/graphics/arrow-dl.gif'
/usr/bin/install -c -m 644 'arrow-dr.gif' '/disk2/www/zm/graphics/arrow-dr.gif'
/usr/bin/install -c -m 644 'arrow-l.gif' '/disk2/www/zm/graphics/arrow-l.gif'
/usr/bin/install -c -m 644 'arrow-r.gif' '/disk2/www/zm/graphics/arrow-r.gif'
/usr/bin/install -c -m 644 'arrow-u.gif' '/disk2/www/zm/graphics/arrow-u.gif'
/usr/bin/install -c -m 644 'arrow-ul.gif' '/disk2/www/zm/graphics/arrow-ul.gif'
/usr/bin/install -c -m 644 'arrow-ur.gif' '/disk2/www/zm/graphics/arrow-ur.gif'
/usr/bin/install -c -m 644 'arrow-l-u.gif' '/disk2/www/zm/graphics/arrow-l-u.gif'
/usr/bin/install -c -m 644 'arrow-l-d.gif' '/disk2/www/zm/graphics/arrow-l-d.gif'
/usr/bin/install -c -m 644 'center.gif' '/disk2/www/zm/graphics/center.gif'
make install-data-hook
make[4]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/web/graphics'
( cd /disk2/www/zm/graphics; chown boop:apache arrow-d.gif arrow-dl.gif arrow-dr.gif arrow-l.gif arrow-r.gif arrow-u.gif arrow-ul.gif arrow-ur.gif arrow-l-u.gif arrow-l-d.gif center.gif )
chown: `boop:apache': invalid group
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/web/graphics'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/web/graphics'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/web/graphics'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/web'
make: *** [install-recursive] Error 1
linux:/home/boop/installs/zoneminder/zm-1.21.3 #
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can look in your httpd.conf file and see what the webuser and webgroup are going to be set to. It will be the same as the user and group defined in that config file.
Regards,
Cordel
moontaurus
Posts: 29
Joined: Fri Aug 05, 2005 9:46 pm

Installed, but won't let me in.... Help!

Post by moontaurus »

Hi there! Okay, yes, a file called by httpd.conf gives me the user and group I need, thanks for that. Also, I MAY have ffmpeg installed okay enough now. ZM installation doesn't scream anymore.

So, Zoneminder won't work for me. I'll get to that.

For the record, this is the configure command that I THINK is right for SUSE 9.1? (should ffmpeg and lame dir's be where the programs are or where the includes are? I chose the latter, as you can see....)

./configure --with-mysql=/usr --with-webdir=/disk2/www/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=/usr/include/ffmpeg --with-lame=/usr/include/lame --with-webuser=wwwrun --with-webgroup=www

Now. Typing 'zmpkg.pl start' as per the readme returns command not found, even if I run from /usr/local/bin where zm is (question, why is default here and not /usr bin where programs seem to live?)

So, I go to my new ZM webpagem, get an simple interface that looks like this:

Sat 20th Aug, 3:54am ZoneMinder Console - Running - v1.21.3 Load: 0.45 / Disk: 1%

0 Monitors Configured for low bandwidth Options

Id Name Function Source Events Hour Day Week Month Archive Zones Mark
REFRESH ADD NEW MONITOR 0 0 0 0 0 0 0 DELETE

I don't get a chance to log in or anything. I click anything I get the "Forbidden" page.

Help!! SUSE 9.1 -- I looked in the ZM directory and everything is owned by wwwrun www, and permissions seem ample. What's going on?

This is the configure command I used that seemed to work (does it look right?)

./configure --with-mysql=/usr --with-webdir=/disk2/www/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=/usr/include/ffmpeg --with-lame=/usr/include/lame --with-webuser=wwwrun --with-webgroup=www

Now. Typing 'zmpkg.pl start' as per the readme returns command not found, even if I run from /usr/local/bin where zm is (question, why is default here and not /usr bin where programs seem to live?)

I installed zm script in /etc/init.d - but I had to remove the line that said
# Source function library.
. /etc/rc.d/init.d/functions

Because the script just stopped there. (It still stopped if I changed it to "./etc/init.d/functions" - there is no "functions" directory anywhere.

Now when I stop and start the zm script in the runlevel editor, the output I get says:
Starting ZoneMinder: /etc/init.d/zm: line 26: echo_success: command
I assume that's good.
__________________

One more:

"grant select,insert,update,delete on zm.* to 'ralph'@localhost identified by 'rover';"

... correct? And placement of the ' mark and everything else? (not the real user/pass of course)

Once again, I never get a chance to enter my user pass when I go to the ZM web page. I just get an interface behaving as above.

THANK! YOU!!!!
Locked