"Use of uninitialized value in transliteration" er
Posted: Fri Jan 21, 2005 7:05 pm
It has to be said that zmupdate.pl has never worked for me (usually because my mySQL server is on a different PC to ZM), however this time the errors were quite odd.
When I ran zmupdate.pl I got this:
I got round that by running the correct zmalter.sql myself then checking zmupdate.pl for anything else that needed tweaking.
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
There are no iffy end of line characters and no blank lines in it.
I'm running perl 5.8.0 on Redhat 9. Any suggestions?
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?