When I ran zmupdate.pl I got this:
Code: Select all
Use of uninitialized value in transliteration (tr///) at scripts/zmupdate.pl line 52, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in transliteration (tr///) at scripts/zmupdate.pl line 52, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in transliteration (tr///) at scripts/zmupdate.pl line 52, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in transliteration (tr///) at scripts/zmupdate.pl line 52, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at scripts/zmupdate.pl line 53, <CONFIG> line 5.
Undefined subroutine &main::ZM_DB_NAME called at scripts/zmupdate.pl line 64.
BEGIN failed--compilation aborted at scripts/zmupdate.pl line 74.
That done I ran zmpkg.pl status. uh-oh... exactly the same error, but this time in zmpkg.pl instead of zmupdate.pl. Looking at the code it's something to do with the regular expression that splits each line in the config file. If I change the regexp into /^(.*)=(.*)$/ (which depends on there being no whitespace in the file) it works. I don't fancy changing all of the PL files yet though
Here's my /usr/local/etc/zm.conf
Code: Select all
# ZoneMinder config
ZM_DB_SERVER=localhost
ZM_DB_NAME=zm
ZM_DB_USER=XXXX
ZM_DB_PASS=XXXX
I'm running perl 5.8.0 on Redhat 9. Any suggestions?