Problems starting zm
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Then perhaps it is related to gentoo in some way, though I can't think what. The only other alternative is whether it's something in perl.
Can you try this script and see what you get?
Can you try this script and see what you get?
Code: Select all
#!/bin/perl -w
use strict;
BEGIN
{
no strict 'refs';
my $name = "xxx";
*{$name} = sub { "yyy" };
use strict;
}
print xxx."\n";
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
i had the same issue. zmupdate.pl failed with the same problem. I ended up running zm_update-1.21.4.sql manually via mysql command line. That got me past the zmupdate.pl part. Next I just ran zm_create.sql manually via mysql command line, and now everything starts up.
It's seems to have lost my previous zone definitions though. It says I have 3 zones defined but when I click on zones, I get the message
"Bogus coordinate string ''Bogus coordinate string ''Bogus coordinate string ''
I ended up re-defining my zones, and now I think it's all happy again.
It's seems to have lost my previous zone definitions though. It says I have 3 zones defined but when I click on zones, I get the message
"Bogus coordinate string ''Bogus coordinate string ''Bogus coordinate string ''
I ended up re-defining my zones, and now I think it's all happy again.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
The zmupdate script does more than apply the DB updates. In some cases changes cannot be done solely in SQL, for instance in the translation of rectangular zones to polygons etc so the script does some other stuff as well. If you apply the DB changes only yourself you will tend to get what you saw.
Phil
Same Problem
Hi Guys,
I'v the same problem!
Before I had zoneminder 1.21.3 installed but after I clean completely my system from old version. Anyway I'v the same problem:
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
No way to fix with zmfix or zmupdate.pl.
The log dir permission are ok sets to apache:apache 755; I'v tried to change the owner of htdocs to apache:apache but with no success.
Anybody know the meaning of this error?
Follow my config:
Linux bigamd 2.6.15-gentoo
mysql-5.0.18
ffmpeg-0.4.9_p20050226-r5
libwww-perl-5.803-r1
perl-5.8.7-r3
zoneminder-1.22.0
/etc/zm.conf
ZM_VERSION=1.22.0
ZM_PATH_BUILD=/usr/share/zoneminder
ZM_TIME_BUILD=1140623790
ZM_PATH_BIN=/usr/bin
ZM_PATH_LIB=/usr/lib
ZM_PATH_CONF=/etc
ZM_PATH_WEB=/var/www/bigamd/htdocs/zoneminder
ZM_PATH_CGI=/var/www/bigamd/cgi-bin
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache
ZM_DB_HOST=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass
/usr/local/etc/zm.conf
ZM_DB_HOST=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass
SeeYou
Thanks
linuxale
I'v the same problem!
Before I had zoneminder 1.21.3 installed but after I clean completely my system from old version. Anyway I'v the same problem:
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
No way to fix with zmfix or zmupdate.pl.
The log dir permission are ok sets to apache:apache 755; I'v tried to change the owner of htdocs to apache:apache but with no success.
Anybody know the meaning of this error?
Follow my config:
Linux bigamd 2.6.15-gentoo
mysql-5.0.18
ffmpeg-0.4.9_p20050226-r5
libwww-perl-5.803-r1
perl-5.8.7-r3
zoneminder-1.22.0
/etc/zm.conf
ZM_VERSION=1.22.0
ZM_PATH_BUILD=/usr/share/zoneminder
ZM_TIME_BUILD=1140623790
ZM_PATH_BIN=/usr/bin
ZM_PATH_LIB=/usr/lib
ZM_PATH_CONF=/etc
ZM_PATH_WEB=/var/www/bigamd/htdocs/zoneminder
ZM_PATH_CGI=/var/www/bigamd/cgi-bin
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache
ZM_DB_HOST=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass
/usr/local/etc/zm.conf
ZM_DB_HOST=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass
SeeYou
Thanks
linuxale
The problem persist
Hi Corey,
i'v checked the where ZM_PATH_SOCKS is set. From default should be /tmp so no problem.
To be sure I'v set the variable in the shell where I run zmpkg.pl start .
The dir /var/run/zm was not writable from the web user but now is 777.
Unfortunately the problem persist.
Thanks
Linuxale
i'v checked the where ZM_PATH_SOCKS is set. From default should be /tmp so no problem.
To be sure I'v set the variable in the shell where I run zmpkg.pl start .
The dir /var/run/zm was not writable from the web user but now is 777.
Unfortunately the problem persist.
Thanks
Linuxale
Re: The problem persist
perl v5.8.8
kernel 2.6.15-gentoo-r1
mysql 5.0.18
I'm having the exact same issues as been listed here. It happens anytime I try to start ZM or run zmupdate.pl:
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 36.
Compilation failed in require at /usr/bin/zmaudit.pl line 54.
BEGIN failed--compilation aborted at /usr/bin/zmaudit.pl line 54.
This is a brand new gentoo box, emereged zoneminder immediately after the system's first boot.
I've already tried all the suggestions in this, and similar threads, so I am not sure what's left. Any suggestions would be great! thanks
kernel 2.6.15-gentoo-r1
mysql 5.0.18
I'm having the exact same issues as been listed here. It happens anytime I try to start ZM or run zmupdate.pl:
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 36.
Compilation failed in require at /usr/bin/zmaudit.pl line 54.
BEGIN failed--compilation aborted at /usr/bin/zmaudit.pl line 54.
This is a brand new gentoo box, emereged zoneminder immediately after the system's first boot.
I've already tried all the suggestions in this, and similar threads, so I am not sure what's left. Any suggestions would be great! thanks
Suggests that for some reason the value in the database for ZM_SHM_KEY is not being retrieved. There must be something more definitive in one of your logs.Bareword "ZM_SHM_KEY" not allowed while "strict subs"
Check and make sure that zm.conf is setup correctly. Check that mysql is running and that you have a user setup that matchs whats in zm.conf. check that you actually have a database setup.
Regards,
Corey
This has all been done. I can get the value for ZM_SHM_KEY by running mysql from the command line as well. I've nuked and paved once already, too. Exact same results.cordel wrote:Suggests that for some reason the value in the database for ZM_SHM_KEY is not being retrieved. There must be something more definitive in one of your logs.Bareword "ZM_SHM_KEY" not allowed while "strict subs"
Check and make sure that zm.conf is setup correctly. Check that mysql is running and that you have a user setup that matchs whats in zm.conf. check that you actually have a database setup.
Regards,
Corey
Has anyone had emerge work correctly for a ZM install on the first go-round?