zmpkg.pl start gives me some trouble.
Posted: Tue May 18, 2010 10:32 am
Hi,
I am racking my head over this issue for the last 2 days. Issue is simple and i know it but the solution i guess is far from reach...
My Issue:
I have configured my ZoneMinder Ver 1.24.2 in a Fedora 8 laptop. I have successfully done make, make install...
As the next step, when i try to start Zmpkg.pl, i get the following error.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder.pm line 33.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 47.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 47.
The thing is i dont have a file called mysql.sock in /var/lib/mysql/mysql.sock. Instead its present in /opt/lampp/var/mysql file. How will i alter the perl file to point it to this location? or has it got anything to do with altering the perl file?
Any help from any friend is greatly appreciated.
Regards,
Reckon.
I am racking my head over this issue for the last 2 days. Issue is simple and i know it but the solution i guess is far from reach...
My Issue:
I have configured my ZoneMinder Ver 1.24.2 in a Fedora 8 laptop. I have successfully done make, make install...
As the next step, when i try to start Zmpkg.pl, i get the following error.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.12.0/ZoneMinder.pm line 33.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 47.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 47.
The thing is i dont have a file called mysql.sock in /var/lib/mysql/mysql.sock. Instead its present in /opt/lampp/var/mysql file. How will i alter the perl file to point it to this location? or has it got anything to do with altering the perl file?
Any help from any friend is greatly appreciated.
Regards,
Reckon.