Page 1 of 1
Suse 9.3: compile -> OK, but perl errors when starting
Posted: Thu Aug 04, 2005 5:48 pm
by tomtom
hello,
i have set up an standard suse 9.3 with all neccesary rpms
it compiles, but when starting via
zmpkg.pl start
i get the following: this error
Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 77.
BEGIN not safe after errors--compilation aborted at /usr/local/bin/zmpkg.pl line 78.
The webinterface also shows php-errors, very often when doing: foreach(....
Thx for any help
Posted: Thu Aug 04, 2005 11:47 pm
by cordel
Might check that apache has permisions to read and write is log files.
It will not start if it can't.
Regards,
Cordel
Posted: Fri Aug 05, 2005 11:44 am
by tomtom
hello,
thx for answering. What do you mean?
Sure, apache writes its own logs, so what permission for what user i need to set.
Are you talking about the zoneminder log folder ?
I already set the logfolder to 777 - that shouldnt be the problem.
Also when i comment line 77 and 78 in zmpkg.pl i get
Bareword "VERBOSE" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 134.
Bareword "VERBOSE" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 144.
Bareword "ZM_OPT_FRAME_SERVER" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 262.
Bareword "ZM_OPT_CONTROL" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 274.
Bareword "ZM_OPT_TRIGGERS" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 286.
Bareword "ZM_OPT_X10" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 290.
Bareword "ZM_CHECK_FOR_UPDATES" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 295.
Bareword "LOG_FILE" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 166.
Execution of /usr/local/bin/zmpkg.pl aborted due to compilation errors.
So i dont think its about the logs.
But i also think somebody else had the problem before me. When googling after it:
http://www.google.com/search?q=Bareword ... ot+allowed
it finds 1 probably old post in this forum but it cannot be displayed anymore.
regards
TomTom
wrong permissions
Posted: Sat Aug 06, 2005 7:17 am
by rmo
Check owner and permissions of /var/log/???? or other directory, where zoneminder writes the logfiles. Here zoneminder writes to /var/log/zoneminder.
Code: Select all
drwxr-xr-x 2 wwwrun www 376 Jul 4 20:06 zoneminder
Regards,
Rainer
Posted: Tue Aug 09, 2005 6:51 pm
by jrochamtz
Hi!!
I have the same problem, i think i have all dependencies needed, i have uninstalled and reinstalled twice, but unsuccess. I'm running fedora 4 x86_64, i can see the image using xawtv. Thanks!
Stopping ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 77.
BEGIN not safe after errors--compilation aborted at /usr/local/bin/zmpkg.pl line 78.
[FAILED]
Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 77.
BEGIN not safe after errors--compilation aborted at /usr/local/bin/zmpkg.pl line 78.
Posted: Wed Feb 15, 2006 5:04 am
by bhomass
has anyone solved this problem. I am getting the identical problem here.
I found the solution. it is here
http://www.zoneminder.com/forums/viewto ... zmpathlogs
Its the DB
Posted: Thu Jan 08, 2009 1:39 am
by sebastiangz
The db/zm_create.sql script in the Config table has a Field that points to a path that isn't valid in Fedora. That is what I found. Regards.
Posted: Sun Aug 01, 2010 9:13 am
by discoverlinux
I restored my mysql database on a new Linux install and got this error. To fix I ran
mysql_upgrade -uroot -p