ZM-1.20.0 Fedoa Core 3 RPM

Support and queries relating to all previous versions of ZoneMinder
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There was a problem with zmtrigger.pl , that should be fixed in the latest 1.20.1 trial version.

I also made a defensive change in the Brightness/Contrast/Hue SQL which might fix the problem reported above.

Phil
madmax
Posts: 55
Joined: Fri Nov 07, 2003 8:49 pm

X10 and zmtrigger.pl

Post by madmax »

Phillip,
Thanks for updating zmtrigger.pl. I will try it out later today.

Cordel,

For X10, all you need is an activehome CM11A:
http://www.smarthome.com/1140.html
These are even cheaper on eBay.
and you will also need x10 motion sensors.
http://www.smarthome.com/4086.html
also, cheap on ebay or at x10.com

The great thing about X10 triggering is that with modect, zma only runs when motion is detected by the motion sensor. This cuts down significantly on false event triggers.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

latest RC errors on build

Post by cordel »

I now recieve these errors when trying to build RC2

Code: Select all

zm_user.cpp: In function `User* zmLoadAuthUser(const char*, bool)':
zm_user.cpp:187: error: `MD5_DIGEST_LENGTH' undeclared (first use this function)zm_user.cpp:187: error: (Each undeclared identifier is reported only once for each function it appears in.)
zm_user.cpp:207: error: `md5sum' undeclared (first use this function)
zm_user.cpp:207: error: `MD5' undeclared (first use this function)
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/zm-1.20.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/zm-1.20.1'
make: *** [all] Error 2
error: Bad exit status from /usr/src/redhat/rpm-tmp.92249 (%build)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Release Canidate 2 rpm is up for testing

Post by cordel »

I have the Release canidate two up for testing.
I had to change the decleration in zm-user.cpp to get it to build. It didn't like the if statement for some reason.
Cheers,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Which line didn't it like?

Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I had to cange the following by removing the if statement.
#ifdef HAVE_LIBCRYPTO
#include <openssl/md5.h>
#endif // HAVE_LIBCRYPTO

to

#include <openssl/md5.h>
User avatar
chaapaï
Posts: 19
Joined: Fri Aug 13, 2004 2:26 pm
Location: France

Post by chaapaï »

hello everybody
Result for PHP : I compile ZM on SME (RH7.3) with PHP 4.1.2 modif version after (not 4.3.8 , oops) =>
zm 1.19.5 without patch OK, work correctly
ZM1.19.5 + patch for RPM => can't acces to login panel. and i have some errors like

Code: Select all

PHP Warning:  Wrong parameter count for fgets() in .../zm_config.php on on line 31
zm_config.php =

Code: Select all

$cfg = fopen( ZM_CONFIG, "r") or die("Could not open config file.");
while ( !feof($cfg) )
{
        $str = fgets( $cfg );
        if ( preg_match( '/^\s*$/', $str )) { continue; }
i change to fgets ($cfg , 100) => works, i can access to login and zm work correctly with some errors
the second parameter of fget( x,x ) is not necessary for recent version of php.... :D
an another error :

Code: Select all

PHP Warning:  Wrong parameter count for mkdir() in ../zm_actions.php on line 252
in zm_actions :

Code: Select all

                                                die( mysql_error() );
                                        //$view = 'none';
                                        mkdir( ZM_DIR_EVENTS."/".$mid );
FOR ZM 1.20 :I have the same errors and i can't login. I can acces to the login panel, i put my login and password , i access to the central console ~0.5s and i return directly to the panel login. :(
with patch : it doing the same thing.

So, I decide to pass to PHP 4.3.9 and actually, it run with some little errors....but it run
constant errors :

Code: Select all

PHP Warning:  Invalid argument supplied for foreach() in /html/zm_html_view_state.php on line 148 

in zm_html_view

Code: Select all

  foreach ( $states as $state )
Cordel I think you use recent version of PHP for testing ....
but there are prbs with old version

If this infos can help you .....:wink:

Good job all :D
Last edited by chaapaï on Mon Jan 31, 2005 3:26 am, edited 1 time in total.
oooops, i'm sorry but i speak english like as spanish cow...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yes chaapaï you would be correct in assumeing that I am useing a more recent version of PHP and all your troubles look to be php related. As of recently I also beleive that the php script has been updated to support the newer fuctions of the more recent php and that is why you have these errors.
The php web pages are not constructed through the RPMBUILD process though and are for the most part static and just copied into the rpm.
My build machine is Fedora Core 3 and I beleve that my current version of PHP is 4.3.10-3.2 You may have to update your PHP to get things working or modifiy the pages to work with the version of php you have.
Cheers,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I've addressed the php warnings for the next release. However they are just warnings and can be ignored, or switched off by turning off NOTICE errors in php.

Phil
User avatar
karen
Posts: 1
Joined: Tue Feb 01, 2005 7:55 pm

Post by karen »

I installed zm-1.20.1-RC3.FC3.i386.rpm on my FC3 system all the dependencies and stuff - restarted apache and I get when pointing to it:
Could not connect to database: Access denied for user: 'ZM_DB_USER@localhost' (Using password: YES)
Obviously I need to setup a mysql user/password, dbase, etc., but is there directions as to what dbase to make, etc.?

Thanks.

Karen
http://scootgirl.com/
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Karen,
With the RPM you need to edit the /etc/zm.conf
Add a username and password (anything you please) this will be used by ZM only

Make sure you have mysql running (I set chkconfig 2345 mysql on and same for httpd)

Then you need to execute
/usr/lib/zm/bin/zminit
It will ask you for a admin user type root and unless you gave root a password for the password leave it blank.
Your Database is now set up.

That should do it, If not I would guess you missing a package that you require.
If you post some of the errors ifrom your logs we can give you more definative help.
Cheers,
Cordel
User avatar
ma77hias
Posts: 71
Joined: Wed Jul 07, 2004 3:18 pm

zm-1.20.0-3.FC3.i386.rpm and MySQL-4.1.9-0

Post by ma77hias »

Just wondering if someone had the same problem:
I could not get the zm rpm install to work with MySQL-4.1.9-0 even though I reocmpiled my php.
Always got the error:
Could not connect to database: Client does not support authentication protocol requested by server; consider upgrading MySQL client.

Works fine though with MySQL-4.0.23

P.S. I did not try to install zm 1.20 without the rpm and MySQL-4.1.9-0 so I don't know if those two just don't get along
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

Try ftp://oskin.ru/pub/linux/RedHat/MyRPMS/ ... 3.i386.rpm , it is compiled with mysql-4.1.9. Other packages compiled with mysql-4.1.* (perl-DBD-MySQL, php, etc.) lay in the same directory.
shouchen
Posts: 3
Joined: Fri Feb 04, 2005 2:40 pm
Location: Charlotte, NC

Problem installing RPMs on a fresh, full, FC3 installation

Post by shouchen »

Hi everyone. I'm new here... I just "discovered" ZoneMinder a few days ago and would like to give it a try. I installed Fedora Core 3 (all packages and all released updates) on some old hardware I had lying around. I downloaded all of the RPMs from cordel's directory and got these errors when trying to install them. I've been using Linux (RedHat and Fedora) for several years, so I'm pretty familar with it... but mostly from a "server" side (web server, mail server, DB server, etc.) and have not delved into the world of trying to make something like video4linux, webcam, etc work.

Here are the RPMs I installed, and the error message. (Never mind the host name, it really is FC3) Thanks in advance for your help!

Code: Select all

[root@fedora1 zm]# ls
a52dec-0.7.4-6.rhfc3.at.i386.rpm
faac-1.24-1.1.fc3.rf.i386.rpm
faad2-2.0-2.rhfc3.at.i386.rpm
ffmpeg-0.4.8-4.rhfc3.at.i386.rpm
imlib2-1.1.2-3.rhfc3.at.i386.rpm
libxvidcore4-1.0.2-6.rhfc3.at.i386.rpm
perl-Archive-Zip-1.14-FC3.noarch.rpm
perl-Astro-SunTime-0.01-FC3.noarch.rpm
perl-Compress-Zlib-1.33-1.i386.rpm
perl-Date-Manip-5.42-1.noarch.rpm
perl-Device-SerialPort-1.002-1.i386.rpm
perl-IO-stringy-2.109-FC3.noarch.rpm
perl-MailTools-1.66-1.noarch.rpm
perl-MIME-tools-5.417-1.noarch.rpm
perl-Net_SSLeay.pm-1.25-1.i386.rpm
perl-Time-modules-2003.1126-1.noarch.rpm
perl-Unicode-Map-0.112-1.i386.rpm
perl-Unicode-String-2.07-1.i386.rpm
perl-X10-0.03-1-FC3.noarch.rpm
zm-1.20.1-RC4.FC3.i386.rpm
zm-X10-1.20.1-RC4.FC3.i386.rpm
[root@fedora1 zm]# rpm -ivh *.rpm
warning: a52dec-0.7.4-6.rhfc3.at.i386.rpm: V3 DSA signature: NOKEY, key ID 66534c2b
warning: faac-1.24-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
warning: perl-Archive-Zip-1.14-FC3.noarch.rpm: V3 DSA signature: NOKEY, key ID 20fd877a
error: Failed dependencies:
        liba52.so.0 is needed by a52dec-0.7.4-6.rhfc3.at.i386
        liba52_0 = 0.7.4 is needed by a52dec-0.7.4-6.rhfc3.at.i386
        lame is needed by ffmpeg-0.4.8-4.rhfc3.at.i386
        libmp3lame.so.0 is needed by ffmpeg-0.4.8-4.rhfc3.at.i386
        perl(Convert::BinHex) is needed by perl-MIME-tools-5.417-1.noarch
        lame is needed by zm-1.20.1-RC4.FC3.i386
        libmp3lame.so.0 is needed by zm-1.20.1-RC4.FC3.i386
Thanks
Steve Houchen
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You need to install the lame package from your FC3 Disc set and just in case you do need the devels for those packages I put them on the ftp. Those normally are not required. You should not need perl-SSLeay either, thats there for something else I'm working on but it don't hert to install.
It appears that you are missing a perl module as well but I'm not sure which package provides convert::binhex. The files on my ftp under fedora/3/RPMS should be all the files you need in addition to CD set as far as I'm aware. No one else had said anything otherwise.
Cheers,
Cordel
Locked