Page 1 of 3
Problems starting zm
Posted: Sat Jan 07, 2006 11:54 am
by forgiarini
hi,
I'm trying to start ZoneMinder but I receive this error, what could it be?
Distribution: SUSE SLES 9
perl v5.8.3 built for x86_64-linux-thread-multi
kernel 2.6.5-7.244-smp
Architecture x86_64
Thanks,
Luca
linux-server:~/ZoneMinder-1.22.0/scripts # ./zm start
Starting ZoneMinder: Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder/SharedMem.pm line 156.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder.pm line 36.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45.
./zm: line 17: echo_failure: command not found
Posted: Sat Jan 07, 2006 10:12 pm
by zoneminder
Are you using version 1.22.0? If so then it means you haven't created/loaded the database.
Posted: Wed Jan 18, 2006 5:15 pm
by homy
zoneminder wrote:Are you using version 1.22.0? If so then it means you haven't created/loaded the database.
I have the same problem, but i have mysql running, and the database created, at first i did receive an error that it could not connect to the database. After setting the correct values in zm.conf, that error went away, but the other errors remained like in the first posting ...
Posted: Thu Jan 19, 2006 10:22 am
by zoneminder
Is this a new install or an upgrade from a previous version?
Posted: Thu Jan 19, 2006 3:26 pm
by homy
This is a new installation ... well, today i found something else, i did take a look at mysql and i saw that this was mysql 5, i went back to mysql 4 and now the errors are gone, but when i try to start zoneminder, i only get a segmentation fault ... No errors in log-files or so ...
Posted: Thu Jan 19, 2006 10:02 pm
by zoneminder
Can you post a grab of what happens?
Posted: Fri Jan 20, 2006 8:49 am
by Imp.Avgvstvs
I've exactly the same problem.
ffmpeg 0.4.9
Zoneminder 1.22.0
Mysql 5.0.18
Can be an incompatibility with Mysql 5 ??
Thanks in advance
Posted: Fri Jan 20, 2006 9:32 am
by zoneminder
I need a few more details before I can say what might be wrong. Can you post a dump of any errors you get please.
Posted: Fri Jan 20, 2006 9:33 am
by Imp.Avgvstvs
/usr/local/bin/zmpkg.pl
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45.
My system is a gentoo linux.
Posted: Fri Jan 20, 2006 10:02 am
by zoneminder
Thanks.
Can you create a simple perl script as follows
Code: Select all
#!/usr/bin/perl -w
use strict;
$| = 1;
use ZoneMinder::Config qw/:all/;
print ZM_SHM_KEY."\n";
Call it what you want and then run it, by typing 'perl <yourscript>.pl' either as root or in your zm directory (with a valid zm.conf in), if not both. Please post what you get.
Posted: Fri Jan 20, 2006 10:41 am
by Imp.Avgvstvs
That's what i get :
bash #perl prova.pl
ZM_SHM_KEY
bash#
Posted: Fri Jan 20, 2006 2:09 pm
by zoneminder
Can you confirm that if you do
Code: Select all
mysql -u<your db user> -p<your db pass> <your db>
select * from Config where Name = "ZM_SHM_KEY";
quit;
that you get a row of data out?
Posted: Fri Jan 20, 2006 2:12 pm
by zoneminder
Also, can you change the line in the perl script that says
to say
and see what that does.
Posted: Sun Jan 22, 2006 9:13 pm
by homy
zoneminder wrote:I need a few more details before I can say what might be wrong. Can you post a dump of any errors you get please.
Sorry for not replying earlier, but i went back to a format and installed my linux from 0. Now everything works ...
Posted: Sun Jan 22, 2006 9:15 pm
by zoneminder
Good. Thanks for letting us know.