Not able to start start zmpkg.pl service in zoneminder
Posted: Sun Jan 17, 2010 9:26 am
Hi Dears,
I need your valuable help to fix my installation issue of ZoneMinder-1.24.2 version on RHEL 5.0. My problem is given as below.
I am using ZoneMinder-1.24.2 version on RHEL 5.0 and i did the following step to complete the installation.
1. ./configure --with-mysql=/usr/ --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_SSL_LIB=openssl
Result is : SUCCESS
2. #mysql -p
Password: * * * *
> create database zm;
Result is: SUCCESS3. Then i created mysql dump using below command query.
#mysqldump -uroot -p zm > /root/ZoneMinder-1.24.2/db/ZMDB.sql
Result : SUCCESS
4. Then i created user name called 'zmuser' in database as below
> CREATE USER 'zmuser'@'localhost' IDENTIFIED BY 'zmnewpass';
Result: SUCCESS
5.Then i provided full permission for user "zmuser" on database "zm" as below
>GRANT ALL PRIVILEGES ON `zm\_%` . * TO 'zmuser'@localhost identified by 'zmnewpass';
Result : SUCCESS
6.Restart MYSQLADMIN service as below
#mysqladmin -uroot -p reload
RESULT : SUCCESS
7. I used 'make' as root user
# /root/ZoneMinder-1.24.2/make
Result : SUCCESS
8. I used 'make install' as root user
# /root/ZoneMinder-1.24.2/make install
Result : SUCCESS
[b]9. But when i try to issue /usr/local/bin/zmpkg.pl start command in root prompt i am getting below error
#/usr/local/bin/zmpkg.pl start
Error: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 46.[/b]
I need your valuable help to fix my installation issue of ZoneMinder-1.24.2 version on RHEL 5.0. My problem is given as below.
I am using ZoneMinder-1.24.2 version on RHEL 5.0 and i did the following step to complete the installation.
1. ./configure --with-mysql=/usr/ --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_SSL_LIB=openssl
Result is : SUCCESS
2. #mysql -p
Password: * * * *
> create database zm;
Result is: SUCCESS3. Then i created mysql dump using below command query.
#mysqldump -uroot -p zm > /root/ZoneMinder-1.24.2/db/ZMDB.sql
Result : SUCCESS
4. Then i created user name called 'zmuser' in database as below
> CREATE USER 'zmuser'@'localhost' IDENTIFIED BY 'zmnewpass';
Result: SUCCESS
5.Then i provided full permission for user "zmuser" on database "zm" as below
>GRANT ALL PRIVILEGES ON `zm\_%` . * TO 'zmuser'@localhost identified by 'zmnewpass';
Result : SUCCESS
6.Restart MYSQLADMIN service as below
#mysqladmin -uroot -p reload
RESULT : SUCCESS
7. I used 'make' as root user
# /root/ZoneMinder-1.24.2/make
Result : SUCCESS
8. I used 'make install' as root user
# /root/ZoneMinder-1.24.2/make install
Result : SUCCESS
[b]9. But when i try to issue /usr/local/bin/zmpkg.pl start command in root prompt i am getting below error
#/usr/local/bin/zmpkg.pl start
Error: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 46.[/b]