0

i install the zoneminder as per their instruction give by zone minder.After installation they gave a command to start zomeminder server

"zmpkg.pl start" but when i use this i got this error .

Warning, overriding installed ./zm.conf file with local copy
Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/ZoneMinder/Debug.pm line 265.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 34.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 34.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
mpromonet
  • 11,326
  • 43
  • 62
  • 91
vijaykumar
  • 4,658
  • 6
  • 37
  • 54

2 Answers2

0

Zoneminder requires a web server and a background task:

 service httpd start
 service zoneminder start

From Start ZoneMinder

NullPoiиteя
  • 56,591
  • 22
  • 125
  • 143
  • service zoneminder start Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/ZoneMinder/Debug.pm line 265. Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 34. BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 34. Compilation failed in require at /usr/bin/zmpkg.pl line 45. BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45. failure – vijaykumar Dec 03 '12 at 06:31
0

Look if there is something wrong with SQL dump import

In my case, in installation manual for Ubuntu 14.04 it is asked to import database dump with

MySQL -uroot -p < /usr/share/zoneminder/db/zm_create.sql

this failed and halted due to error with creation of 'Logs' table. I then edited the SQL file to add

DROP TABLE IF EXISTS `Logs`;

before

CREATE TABLE `Logs` (

and then imported the dump successfully. The zm service then started correctly without errors

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
zmuser
  • 1