ZM 1.26.3 Ubuntu server
Posted: Mon Sep 30, 2013 12:00 pm
Hi!
I have a problems, that I cant figured out.
So, I have Ubuntu 12.04.3 Server installed. I'm trying to install ZM 1.26.3 from launchpad (ppa:iconnor/zoneminder) or compile it from source- the result is similar:
when I do
I've got
OK, I created database manually with
but now I've got another database error:
If I compile ZM from source, I've got similar errors but I see it in the web interface
1) there'is no database zm
2) there'is no table "Config" in the database zm
P.S. If I try to install 1.25 from ubuntu repos, I've got an error that Mysql is not running although it actually is.
So I haven't ideas what to do next. Please help! Sorry for my English
I have a problems, that I cant figured out.
So, I have Ubuntu 12.04.3 Server installed. I'm trying to install ZM 1.26.3 from launchpad (ppa:iconnor/zoneminder) or compile it from source- the result is similar:
when I do
Code: Select all
sudo apt-get install zoneminder
Code: Select all
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl/5.14.2/ZoneMinder/Config.pm line 89
...
...(a lot of text in Russian)
...
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
mysql -uroot -p
mysql>create database zm;
mysql>grant all privileges on zm.* to 'zmuser'@'localhost' identified by "zmpass";
mysql>\q
Code: Select all
Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl/5.14.2/ZoneMinder/Config.pm line 100
BEGIN failed--compilation aborted at /usr/share/perl/5.14.2/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl/5.14.2/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl/5.14.2/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
failure
invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: не удалось обработать параметр zoneminder (--configure):
подпроцесс установлен сценарий post-installation возвратил код ошибки 255
При обработке следующих пакетов произошли ошибки:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
1) there'is no database zm
2) there'is no table "Config" in the database zm
P.S. If I try to install 1.25 from ubuntu repos, I've got an error that Mysql is not running although it actually is.
So I haven't ideas what to do next. Please help! Sorry for my English