"make install" does nothing

Support and queries relating to all previous versions of ZoneMinder
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

zm script???

Post by Barbado »

Guess not, huh...
Sorry for such questions.
The thing is I'm in a hurry to make ZM work.

Regarding ZM's README file when it says what to do for ensuring ZM to be started on reboot,
which would be the file to be copied to my "init.d" directory? zm.php (guessing again)?

Well I did it using the zm.php file and by the time I use the chkconfig command, the zm service is not recognized.

Thank you gentlemen for your patience.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Installing cambazola does not require a rebuild of zm. It's just a java script.
In the README I beleive it states to copy the "zm" from the scripts directory to /etc/init.d
then do the chkconfig add, etc. But your using Debian and the script is made for Redhat/Fedora/Mandriva, I don't thingk it will work on Debian.
If you search the forum, maybe someone has posted a working script (come to think of it you probably don't have a chkconfig command either).

Regards,
Corey
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post by Barbado »

A Kanotix Debian distro actually, Corey. It's called Kurumin Linux. =)
It has an adapted chkconfig command.

Oh, and I've just found the modified Debian zm script.
It's in the wiki:
Thank you =)
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Help!... again.

Post by Barbado »

I cannot see zm's web interface.

Something related to MySQL.

Apache and PHP are ok but by the time I point a browser to the zm.php file, I receive the following warning:
Warning: mysql_pconnect() [function.mysql-pconnect]: Lost connection to MySQL server during query in /var/www/zm/zm_db.php on line 21
Could not connect to database: Lost connection to MySQL server during query
Moreover, when I try to start it manually, here's the returned error:
# zmpkg.pl start
DBI connect('database=zm;host=vigilancia','zmuser',...) failed: Can't connect to MySQL server on 'vigilancia' (111) at /usr/local/share/perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/local/share/perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/share/perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45.
Please I need some guidance here.

Thank you.
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

MySQL packages

Post by Barbado »

My MySQL installed packages are:
# dpkg -l | grep mysql
ii libdbd-mysql-perl 3.0007-1 A Perl5 database interface to the MySQL data
ii libmysql++-dev 2.0.7-3 mysql C++ library bindings (development)
ii libmysql++2c2a 2.0.7-3 mysql C++ library bindings (runtime)
ii libmysqlclient14 4.1.15-0.dotdeb.4 mysql database client library
ii libmysqlclient15-dev 5.0.26-0.dotdeb.1 mysql database development files
ii libmysqlclient15off 5.0.26-0.dotdeb.1 mysql database client library
ii mysql-client 5.0.26-0.dotdeb.1 mysql database client (current version)
ii mysql-client-5.0 5.0.26-0.dotdeb.1 mysql database client binaries
ii mysql-common 5.0.26-0.dotdeb.1 mysql database common files (e.g. /etc/mysql
ii mysql-server 5.0.26-0.dotdeb.1 mysql database server (current version)
ii mysql-server-5.0 5.0.26-0.dotdeb.1 mysql database server binaries
ii php5-mysql 5.1.6-4 MySQL module for php5
ii php5-mysqli 5.1.6-4 MySQL Improved module for php5
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Sounds like there might be an issue with mysql. The error is connection was lost so check your mysql logs and see if mysql is crashing.

Corey
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

MySQL

Post by Barbado »

oh boy... =(

I'm not used do MySQL.

my /var/log/ directory (directories bolded):
$ ls
acpid debug kdm.log.4.gz mail.err mysql.log.4.gz smail uucp.log
acpid.1.gz debug.0 kdm.log.5.gz mail.info mysql.log.5.gz syslog wtmp
acpid.2.gz diald.log kdm.log.6.gz mail.log mysql.log.6.gz syslog.0 wtmp.1
apache2 dmesg kdm.log.7.gz mail.warn mysql.log.7.gz syslog.1.gz wwwoffle.log
auth.log dpkg.log kern.log messages news syslog.2.gz wwwoffle-upgrade.log
auth.log.0 faillog kern.log.0 messages.0 pppstatus syslog.3.gz xdm.log
bittorrent fontconfig.log lp-acct mysql scrollkeeper.log syslog.4.gz Xorg.0.log
btmp isdnctrl lp-acct.0 mysql.err scrollkeeper.log.1 syslog.5.gz Xorg.0.log.old
btmp.1 kdm.log lp-errs mysql.log scrollkeeper.log.2 syslog.6.gz Xorg.2.log
cups kdm.log.1 lp-errs.0 mysql.log.1.gz setuid.changes thttpd.log Xorg.2.log.old
daemon.log kdm.log.2.gz lpr.log mysql.log.2.gz setuid.today user.log
daemon.log.0 kdm.log.3.gz lvm mysql.log.3.gz setuid.yesterday user.log.0
Nothing inside mysql.err nor inside mysql.log.
=(
The /var/log/mysql/ directory looks like this:
$ ls
mysql-bin.000008 mysql-bin.000014 mysql-bin.000020 mysql-bin.000026 mysql-bin.000032 mysql-bin.000038
mysql-bin.000009 mysql-bin.000015 mysql-bin.000021 mysql-bin.000027 mysql-bin.000033 mysql-bin.000039
mysql-bin.000010 mysql-bin.000016 mysql-bin.000022 mysql-bin.000028 mysql-bin.000034 mysql-bin.000040
mysql-bin.000011 mysql-bin.000017 mysql-bin.000023 mysql-bin.000029 mysql-bin.000035 mysql-bin.index
mysql-bin.000012 mysql-bin.000018 mysql-bin.000024 mysql-bin.000030 mysql-bin.000036
mysql-bin.000013 mysql-bin.000019 mysql-bin.000025 mysql-bin.000031 mysql-bin.000037
All the files are huge with lots of information I cannot understand.

Really in the dark right now.

please, help me.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

well i cant help, if you want an easy zm route use one of the ready made distros
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post by Barbado »

The greatest forum moderator reply I've ever seen: "well, I cant help".

Well, I guess I'll try your remaster then.
Does it come with Conexant Fusion BT878 chipset (UCC4 card) support?

At last: MODERATORS, do I have any other thing to try concerning my last MySQL issue?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Im a modertor that means i edit posts and remove things that shouldnt be here.
IT DOES NOT MEAN IM A LINUX EXPERT

I have been using zm for about 2 yrs and i have always used the recommended distros. By all means carry on trying to get it to work on your distro. But i personally wander why people try it on dstro we dont use then moan when we cant support it. I have ever even heard of you distro much less used it.
My advice you can take i or leave it, is to learn on a distro we know works you have a choice of 3 and then once comfortable with it move to your distro.

No i have no idea why mysql has a problem!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I found ALOT of info on bin log at http://dev.mysql.com/doc/refman/5.1/en/ ... ation.html
From what I gather (sorry didn't really have that much time research it) your mysql is set up to replicate posibly. If there are not errors loged then your mysql should be okay.
I take that this is a remote database not on the zm local host?

Regards,
Corey
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post by Barbado »

James Wilson,

I am sorry. I did not mean to offend you.

Corey,

All of the packages and services are installed in zm's local host.

I'm starting fresh anyway.

Thank you very much
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Barbado
no offence taken but the problem we have or i do anyway is supporting all the various flavours of linux when they are known to have issues. Its a zm forum for zm isues really. While some (corey) know more about other distros than me, all i know is mandriva.
If you use either mandriva or fedora 3 then you wont have these issues, or of course you can try to use gentoo, debian or ubuntu and keep finding things that i for one cant help with

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post by Barbado »

By the way,

how many cameras can ZoneMinder support in the same server?

I have searched both the forum and the wiki's FAQ but found no clear answer.

Thank you.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

there is no clear answer as it depends on frame rate, resolution disk speed proc speed etc but i would say 32 would be a limit at about 2 fps per cam and decent hardware
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked