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, first disable the rpmforge, rpmfusion, and epel repos and then follow the WiKi instructions to add zmrepo to your system. I recommend you keep yum priorities installed and assign zmrepo a priority that is lower (i.e. higher number) than the rest of your installed repo(s).
------------------------------------------------------------------------------------------------------------------------------------------------------
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 15, 2014
Zoneminder 1.27.0 Released!
This release contains additional camera support via the new libvlc and libcurl methods.
A new tool, zmcamtool.pl, has been added to allow one to import and export camera and ptz configs.
Cambozola has been integrated into the zoneminder package, and thus it is no longer necessary to install separately.
Please report any issues.
Zoneminder 1.27
IMPORTANT: If you are upgrading, note the repositories have changed! See the section titled Prerequisites.
Zoneminder 1.26
This is the latest version of ZoneMinder. Please test these and provide feedback!
Please report any package related issues to this thread and report any other issues here.
Prerequisites
Before you can install any of the ZoneMinder rpm's, you must add the following prerequisites.
- RPM Fusion repository http://rpmfusion.org/
- EPEL repository https://fedoraproject.org/wiki/EPEL
- RepoForge (formerly RPMForge) repository http://repoforge.org/use/
- perl-X10-0.03-1.noarch.rpm
- perl-Astro-SunTime-0.01-1.noarch.rpm
- perl-Sys-Mmap-0.14-2.el6.x86_64.rpm
- perl-Sys-Mmap-0.14-2.el6.i686.rpm
See issue 295 on github: https://github.com/ZoneMinder/ZoneMinder/issues/295
SELinux
The ZoneMinder RPM's will automatically create and install a custom SELinux policy module.
You may run SELinux in any mode you would like. If you discover any SELinux issues with ZoneMinder, please report them to this thread.
Please post the relevant AVC messages from your system log files per the instructions found here:
http://wiki.centos.org/HowTos/SELinux#h ... 191c257c01
Installation
First, my apologies. Zoneminder now requires three repositories to be added to your system, and unfortunately these repos do conflict with one another so care must be taken. I believe, however, that the added complexity I am about to describe will be worth it. The RPM Fusion repo contains newer versions of vlc and ffmpeg, which I have found to give significantly better camera support.
Follow these steps to install the ZoneMinder RPM:
- Add all three repositories listed under Prerequisites to your system, but do not perform a yum update yet!
- Install Yum Priorities onto your system by executing the following:
Code: Select all
sudo yum install yum-plugin-priorities
- Read the instructions for using yum priorities and then assign the following priorities to your repos:
Base -> priority=1
Updates -> priority=1
RPM Fusion -> priority=10
EPEL -> priority=20
RPMForge -> priority=30 - 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-2.el6.x86_64.rpm
- Users Upgrading from a previous ZoneMinder RPM must now perform a "sudo yum update" to upgrade the versions of vlc, ffmpeg, and their dependencies. It will fail, but take note of the failed dependencies. You must now manually remove the conflicting packages. Refer to the Troubleshooting section below for instructions on removing the conflicting packages.
- Install the ZoneMinder RPM.
Code: Select all
sudo yum install zoneminder-1.27.0-1.el6.x86_64.rpm
- Finish the installation by following the steps outlines in the README.CentOS 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.CentOS
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.
RESOLVING CONFLICTS
After adding the new RPM Fusion repo to their system, users attempting to upgrade a previous installation may notice repo conflicts when attempting to use yum. The basic method to fix these is to note the names of the packages that yum is complaining about and then remove them manually like so:
Code: Select all
sudo rpm -e --nodeps <name of package yum complained about>
On my system, the error message looked like this:
I resolved it, but executing the following command, followed by another "yum update":Transaction Check Error:
file /usr/lib64/libpostproc.so.51.2.0 from install of ffmpeg-compat-0.6.7-1.el6.x86_64 conflicts with file from package ffmpeg-libpostproc-0.6.5-1.el6.rf.x86_64
Code: Select all
sudo rpm -e --nodeps ffmpeg-libpostproc