Zoneminder RPM & SRPM for Fedora

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Sat Sep 21, 2013 3:37 pm

UPDATE Sep 5, 2014
DEPRECIATED

The steps outlined in this post are now depreciated in favor of the newly developed zmrepo repository.

Instructions for the new repository have been placed in the WiKi:
http://www.zoneminder.com/wiki/index.ph ... ed_distros

For those that have previously used the method described below, I will post instructions on how to migrate to zmrepo following the next release of zoneminder.

------------------------------------------------------------------------------------------------------------------------------------------------------

IMPORTANT: You must follow ALL of the instructions below BEFORE you install the zoneminder rpm.
These zoneminder rpms will not install or work properly if you do not first set up your system according to what is stated under prerequisites!

UPDATE MAR 16, 2014
Zoneminder 1.27.0 released!
The zmfix utility is obsolete and has been removed from zoneminder.

Zoneminder 1.27 for Fedora 20
Note, there remains an issue with these RPM's and the latest version of gnutls. Refer to the troubleshooting section below to downgrade gnutls.
Zoneminder 1.27 for Fedora 19
Note, these are the last RPM's I will build for Fedora 19.
The files used to create these rpms currently live in the zoneminder source tree here.

Please report any package related issues to this thread and report any other issues to the ZoneMinder 1.26 forum.

Background & Prerequisites
Fedora currently has zoneminder rpms, up to version 1.25, in their repository. Note that the rpms in the Fedora repo have ffmpeg support removed from them. However, the rpms provided here not only are newer but have ffmpeg support added.

Before you can install any of the ZoneMinder rpm's, you must add the following prerequisites.
NOTE: The perl-Sys-Mmap rpms listed above contain a special bugfix related to the use of zmtrigger and the x10 modules.
See issue 295 on github: https://github.com/ZoneMinder/ZoneMinder/issues/295

Installation
Follow these steps to install the ZoneMinder RPM for Fedora:
  1. Add the RPM Fusion repository listed under Prerequisites to your system
  2. Manually download and install the perl modules listed under Prerequisites. Yes, you have to install every one of these even if you aren't planning to use x10.

    Code: Select all

    sudo yum install perl-X10-0.03-1.noarch.rpm perl-Astro-SunTime-0.01-1.noarch.rpm perl-Sys-Mmap-0.14-12.fc19.x86_64.rpm
  3. Install the ZoneMinder RPM.

    Code: Select all

    sudo yum install zoneminder-1.27.0-1.f19.x86_64.rpm
  4. Finish the installation by following the steps outlined in the README.Fedora file. These instructions can be found on your local hard drive under /usr/share/doc/zoneminder. The latest copy of this file can always be found here: https://github.com/ZoneMinder/ZoneMinde ... DME.Fedora
Troubleshooting
GENERAL
Please read! The following is more of a general note. I've noticed in the forums that some of you are going off track a bit. The intent behind what I am providing here is to remove all, 100%, of the need to compile anything at all to get your zoneminder system installed and working. This includes the perl modules!

To put it another way, if you run into an issue and think you need to compile something from source or CPAN then stop! Re-read the instructions sated above and make sure you've got all the prerequisites installed properly. If you believe you have everything in order then please post to the end of this thread, and I'll take a look at it.

DOWNGRADING GNUTLS
Until the issue with gnutls can be resolved, one must stay with these packages:

Code: Select all

[abauer@localhost ~]$ rpm -qa |grep gnutls
gnutls-dane-3.1.16-1.fc20.x86_64
gnutls-utils-3.1.16-1.fc20.x86_64
gnutls-devel-3.1.16-1.fc20.x86_64
gnutls-3.1.16-1.fc20.x86_64
gnutls-c++-3.1.16-1.fc20.x86_64
If you have already upgraded to gnutls 3.1.20 then perform the following to downgrade back to 3.1.16:

Code: Select all

sudo yum downgrade gnutls-c++ gnutls-devel gnutls-debuginfo gnutls-dane gnutls gnutls-utils
Last edited by knight-of-ni on Fri Sep 05, 2014 5:51 pm, edited 21 times in total.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Wed Sep 25, 2013 12:12 pm

Not suprisingly, these rpms need some refinement.

I just worked through a few issues with a user form the Fedora forum.
Until I take the time to incorporate the needed canges, follow the steps in this thread to get the rpm working:
http://forums.fedoraforum.org/showpost. ... stcount=28

Note to self:
  • Update README.Fedora (it's not quite right)
    Add perl-LWP-Protocol-https as a dependency
    Resolve httpd script alias conflict
UPDATE: These issues have been resolved. A new 1.26.4 rpm is incoming...
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Sun Oct 13, 2013 1:33 pm

New RPMS are available for the 1.26.4 Release!

Release notes for zm 1.26.4:
https://github.com/ZoneMinder/ZoneMinder/releases
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

patmansf
Posts: 23
Joined: Mon Sep 30, 2013 12:19 am

Re: Zoneminder RPM & SRPM for Fedora

Post by patmansf » Mon Oct 14, 2013 4:01 pm

knnniggett wrote:New RPMS are available for the 1.26.4 Release!
The rpm (zoneminder-1.26.4-1.fc19.x86_64.rpm) installed, and the database update worked fine for me.

I had to modify the monitor source to use 32 bit color, and now I've switched to 24-bit color (not sure if that actually helps any).

Thanks!

-- Patrick

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Mon Dec 16, 2013 10:19 pm

* BUMP *

ZoneMinder 1.26.5 RPMS released!
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

axelm
Posts: 46
Joined: Wed Feb 06, 2013 1:50 pm

Re: Zoneminder RPM & SRPM for Fedora

Post by axelm » Thu Dec 26, 2013 2:07 pm

Can you build packages for Fedora 20?

Thanks in advance

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Thu Dec 26, 2013 2:17 pm

axelm wrote:Can you build packages for Fedora 20?

Thanks in advance
Have you tried installing the RPM's posted in this thread on Fedora 20?
If that doesn't work, then first post the details here as I have not tried Fedora 20 yet.

Next, download the source rpm and rebuild it like this:
rpmbuild --rebuild zoneminder-1.26.5-1.fc19.src.rpm
EDIT: I must not have had enough coffee in me this morning because my original response didn't make any sense.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Wed Jan 01, 2014 9:00 pm

* BUMP *

32bit Zoneminder RPM has been added
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Sun Jan 05, 2014 7:31 pm

* BUMP *
Special bugfix release of perl-sys-mmap has been added under Prerequisites. This fixes an issue with zmtrigger and the x10 module.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

adam820
Posts: 1
Joined: Sat Feb 01, 2014 9:00 pm

Re: Zoneminder RPM & SRPM for Fedora

Post by adam820 » Sat Feb 01, 2014 9:04 pm

knnniggett wrote:
axelm wrote: Have you tried installing the RPM's posted in this thread on Fedora 20?
If that doesn't work, then first post the details here as I have not tried Fedora 20 yet.
.
I signed up just to say that I'm using the provided package on Fedora 20 and it's working fine so far. The only "issue" that I can see is in the logs, when it references an error or warning, it mentions the location of the file (such as functions.php) is under /home/abauer, presumably where the original RPM was built.

Other than that, thumbs up. :D Thanks for the packages.

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Sat Feb 01, 2014 9:22 pm

Excellent, and thank you for the feedback as I have been asked multiple times if this works on F20.

I don't use Fedora for anything I depend on so that naturally means this isn't my top priority.
We plan to release zoneminder 1.27 soon and following that I will update this thread for F20.

Note that I plan to change my build process to use mock for the next release, which will replace my local account name "abauer" with the more generic account name of "mock" in zoneminder error messages. Yeah, I found that to be annoying too.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

kenworth
Posts: 49
Joined: Tue Feb 11, 2014 1:04 pm

Re: Zoneminder RPM & SRPM for Fedora

Post by kenworth » Mon Feb 17, 2014 3:20 pm

I have confirmed that the issue with the latest gnutls library is present when rebuilding from your latest source rpm on Fedora 20. I successfully rebuilt and installed the following:

rpmbuild --rebuild zoneminder-1.26.5-1.fc19.src.rpm
yum install /root/rpmbuild/RPMS/x86_64/zoneminder-1.26.5-1.fc20.x86_64.rpm

Attempting to run /bin/zmfix results in a segmentation fault and core dump. The library in question is:

[root@shadow bin]# ldd zmfix | grep gnutls
libgnutls.so.28 => /lib64/libgnutls.so.28 (0x00007fe565166000)

And is associated with the following rpm: gnutls-3.1.20-1.fc20.x86_64

Downgrading the gnutls packages requires the following:

yum downgrade gnutls-c++ gnutls-devel gnutls-debuginfo gnutls-dane gnutls

Which results in the following package being installed: gnutls-3.1.16-1.fc20.x86_64. This will allow the ZM binaries to run without error.

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Mon Feb 17, 2014 3:36 pm

Thank you for your feedback, kenworth.
I will take that into account when I build new rpms following the release of zoneminder 1.27.

Fortunately, gnutls isn't the only library we can use for authentication so I may just switch to ssl.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

BiloxiGeek
Posts: 240
Joined: Tue Feb 11, 2014 2:04 pm

Re: Zoneminder RPM & SRPM for Fedora

Post by BiloxiGeek » Wed Feb 19, 2014 10:46 pm

knnniggett wrote: Before you can install any of the ZoneMinder rpm's, you must add the following prerequisites.
  • RPMFusion repository
  • perl-X10-0.03-1.noarch.rpm
  • perl-Astro-SunTime-0.01-1.noarch.rpm
  • perl-Sys-Mmap-0.14-12.fc19.x86_64.rpm
  • perl-Sys-Mmap-0.14-12.fc19.i686.rpm
NOTE: The perl-Sys-Mmap rpms listed above contain a special bugfix related to the use of zmtrigger and the x10 modules.
See issue 295 on github: <github url edited cause it was too spammy>

Troubleshooting
Please read! The following is more of a general note. I've noticed in the forums that some of you are going off track a bit. The intent behind what I am providing here is to remove all, 100%, of the need to compile anything at all to get your zoneminder system installed and working. This includes the perl modules!

To put it another way, if you run into an issue and think you need to compile something from source or CPAN then stop! Re-read the instructions sated above and make sure you've got all the prerequisites installed properly. If you believe you have everything in order then please post to the end of this thread, and I'll take a look at it.
Been trying to get this working and so far I can get zoneminder to start but get nothing from a Cisco WVC80N camera. I can get the console running, pulled up in firefox, add a new monitor pointing to the wireless camera. But I get no video at all.

One issue I ran into was the perl packages listed above don't exist according to yum on a brand new F19 install that has rpmfusion free and non-free repos configured.

Code: Select all

[root@hostname ~]# yum list available perl\* | egrep -i '(x10|astro|mmap)'
perl-Astro-FITS-CFITSIO.x86_64                      1.09-2.fc19          fedora 
perl-Cache-FastMmap.x86_64                          1.40-4.fc19          fedora 
perl-Cache-Mmap.x86_64                              0.11-13.fc19         fedora 
perl-Catalyst-Plugin-Session-Store-FastMmap.noarch  0.16-4.fc19          fedora 

User avatar
knight-of-ni
Posts: 2245
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPM for Fedora

Post by knight-of-ni » Wed Feb 19, 2014 10:58 pm

BiloxiGeek wrote: Been trying to get this working and so far I can get zoneminder to start but get nothing from a Cisco WVC80N camera. I can get the console running, pulled up in firefox, add a new monitor pointing to the wireless camera. But I get no video at all.
Please post this request to the zoneminder 1.26 forum. This thread is for issues related to the rpm's only.
BiloxiGeek wrote: One issue I ran into was the perl packages listed above don't exist according to yum on a brand new F19 install that has rpmfusion free and non-free repos configured.

Code: Select all

[root@hostname ~]# yum list available perl\* | egrep -i '(x10|astro|mmap)'
perl-Astro-FITS-CFITSIO.x86_64                      1.09-2.fc19          fedora 
perl-Cache-FastMmap.x86_64                          1.40-4.fc19          fedora 
perl-Cache-Mmap.x86_64                              0.11-13.fc19         fedora 
perl-Catalyst-Plugin-Session-Store-FastMmap.noarch  0.16-4.fc19          fedora 
yum list available shows pacakges available from the repos currently configured on you system, but the packages shown at the beginning of this thread don't exist in any repo. That's why they are listed there and won't show up with when you issue that command. You have to click on each link, download them to your local drive, and then install them manually.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests