Suse 9.3: compile -> OK, but perl errors when starting

Support and queries relating to all previous versions of ZoneMinder
Locked
tomtom
Posts: 2
Joined: Thu Aug 04, 2005 5:43 pm

Suse 9.3: compile -> OK, but perl errors when starting

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
tomtom
Posts: 2
Joined: Thu Aug 04, 2005 5:43 pm

Post 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
rmo
Posts: 22
Joined: Fri Jan 21, 2005 6:57 pm
Location: Germany

wrong permissions

Post 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
jrochamtz
Posts: 4
Joined: Tue Aug 09, 2005 6:36 pm

Post 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.
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post 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
sebastiangz
Posts: 1
Joined: Thu Jan 08, 2009 1:16 am

Its the DB

Post 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.
discoverlinux
Posts: 3
Joined: Wed Aug 10, 2005 10:01 pm

Post by discoverlinux »

I restored my mysql database on a new Linux install and got this error. To fix I ran

mysql_upgrade -uroot -p
Locked