Problems starting zm
-
- Posts: 6
- Joined: Sat Jan 07, 2006 11:49 am
Problems starting zm
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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 ...zoneminder wrote:Are you using version 1.22.0? If so then it means you haven't created/loaded the database.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 3
- Joined: Fri Jan 20, 2006 8:47 am
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 3
- Joined: Fri Jan 20, 2006 8:47 am
/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.
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.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Thanks.
Can you create a simple perl script as follows
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.
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";
Phil
-
- Posts: 3
- Joined: Fri Jan 20, 2006 8:47 am
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Can you confirm that if you do
that you get a row of data out?
Code: Select all
mysql -u<your db user> -p<your db pass> <your db>
select * from Config where Name = "ZM_SHM_KEY";
quit;
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Also, can you change the line in the perl script that says
to say
and see what that does.
Code: Select all
print ZM_SHM_KEY."\n";
Code: Select all
print &ZM_SHM_KEY."\n";
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: