Zoneminder RPM & SRPMS for Red Hat & CentOS 6

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: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

UPDATE: Used the audit2allow tool to create a new selinux policy module. RPM's have been updated.
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: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

zoneminder 1.26 rpms now available.
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: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

zoneminder 1.26.3 rpms now available.
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/
DigitalDeviant
Posts: 17
Joined: Wed Jul 24, 2013 2:25 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by DigitalDeviant »

I've been trying to install 1.26 x86_64 on Centos 6.4 and with every version seem to get the following errors when starting the service

Code: Select all

-bash-4.1# service zoneminder start
Can't open config file '/usr/local/etc/zm.conf': No such file or directory at /usr/local/lib64/perl5/ZoneMinder/Config.pm line 100
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/bin/zmupdate.pl line 47.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 47.
I've installed the Perl modules linked and have both repos added. I'm pretty sure I've followed all the instructions so any help would be appreciated.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

See how the system is looking under /usr/local instead of /usr?
That typically means you have a previous version of zoneminder on your system, which has been installed from source, in addition to 1.26 installed from rpm. What you need to do is navigate to the folder you originally installed that old version of zoneminder from and issue a "sudo make uninstall". Just to be safe, I would reinstall the rpm after you do this.
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/
DigitalDeviant
Posts: 17
Joined: Wed Jul 24, 2013 2:25 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by DigitalDeviant »

knnniggett wrote:See how the system is looking under /usr/local instead of /usr?
That typically means you have a previous version of zoneminder on your system, which has been installed from source, in addition to 1.26 installed from rpm. What you need to do is navigate to the folder you originally installed that old version of zoneminder from and issue a "sudo make uninstall". Just to be safe, I would reinstall the rpm after you do this.
I was pretty sure I had done a make uninstall originally but went ahead and tried it again. I did a find to see if there were any leftover files and it seems the old install is gone. I'm still getting the same error.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

Ok, then that means the uninstall didn't remove all the files. That's good to know because you aren't the first person to run into this.

We need to manually remove the folder that is still hanging around:

Code: Select all

sudo rm -rf /usr/local/lib64/perl5/ZoneMinder
Any zoneminder related folder under /usr/local is safe to delete because rpm packages will never put their files under that prefix.

UPDATE: Please report back if this resovles the issue entirely or not. I'm communicating with another user with nearly the same issue.
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/
DigitalDeviant
Posts: 17
Joined: Wed Jul 24, 2013 2:25 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by DigitalDeviant »

Yes, deleting the old files in /usr/local worked. Thank you very, very much. Your work and help is definitely appreciated.
jmaurin
Posts: 2
Joined: Tue Oct 01, 2013 1:33 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by jmaurin »

Any mirror? Links are offline.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

Those links are being hosted on my own server via dyndns at the moment.
Just tested them, they are working fine for me.
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: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

I am running pfblocker on my firewall, which blocks countries labelled as "top spammers".
Let me if you are trying this from outside the US and I can make an exception.
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/
jmaurin
Posts: 2
Joined: Tue Oct 01, 2013 1:33 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by jmaurin »

I don't know why, but can't access from Brazil (testes on multiple providers).
So, this is my mirror: "jonis com br", path is 'zm'
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

Yep, that one's on my end. Try it now. Should work.
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/
Ruler
Posts: 232
Joined: Mon Nov 08, 2004 9:02 pm
Location: Bay City, MI

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by Ruler »

knnniggett wrote:During the rpm installation, a set of post-installation instructions will appear on the screen. You may have to scroll up to see them. These instructions will guide you through creating the database, configuring the services, etc.
Let's say that one was called away after the installation started and power saving turned the monitor off and one is unable to scroll back up to see the directions. (Hypothetical situation of course... ;) :D :lol: ) Are they available anywhere else or can they be recalled in some way?
This message is made up of not less than 90% recycled electrons.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni »

Yep.

The documentation can be found here:
/usr/share/doc/zoneminder-1.26.3/README.CentOS

Ironically, I tried to pause the output during the installation so the screen would not keep scrolling, and it seems that yum overrides that.
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