Page 1 of 1

CentOS 4.4 and ZM

Posted: Mon Feb 05, 2007 3:37 pm
by Aketaton
Hi all

I'm trynig to install ZM on a Centos 4.4 64bit system.

I tried to follow these guidelines:

http://www.zoneminder.com/forums/viewtopic.php?t=6086

But the packages are too old :(

Does anybody has some advices to give me? Or anybody has a link to download centos 4.3 64 bit??

Do you have other step by step guides to install ZM on a 64 bit system?

Thank you very mutch.

Posted: Mon Feb 05, 2007 9:48 pm
by zoneminder
These are the steps I have taken to install ZM on a RHEL system, which might help.

It is quite brief as it's just a crib sheet rather than detailed instructions. It is for 1.22.2 so some bits may not apply and also you may have yum rather than up2date but it might give you a bit of help.
1. Disable selinux (/etc/selinux/config)
2. Set up file database (/etc/updatedb.conf)
3. Install mysql etc (up2date –install mysql-server etc)
4. Set up mysql to auto-start (chkconfig --add mysqld; chkconfig --level 345 mysqld on; service mysqld start)
5. Install libpcre etc (up2date --install pcre-devel)
6. Install subversion (up2date --showall | grep svn)
7. Fetch ffmpeg (svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg)
8. Build ffmpeg (cd ffmpeg; ./configure; make )
9. Install ffmpeg (make install; make install-libs; make install-headers)
10. Install perl modules (perl –MCPAN –eshell; install Archive::Tar Archive::Zip; install MIME::Lite MIME::Entity)
11. Fetch ZM (wget 'http://www.zoneminder.com/downloads/Zon ... 2.2.tar.gz')
12. Configure ZM (./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-libarch=lib64 ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=<your zm db user>ZM_DB_PASS=<your zm db name> CFLAGS="-g -O3 -march=athlon64" CXXFLAGS="-g -O3 -march=athlon64")
13. Patch ZM (wget 'http://www.zoneminder.com/downloads/zm- ... mpeg.patch'; wget 'http://www.zoneminder.com/downloads/zm- ... ang2.patch'; wget 'http://www.zoneminder.com/downloads/zm- ... lter.patch')
14. Build ZM (make)
15. Install ZM (make install)
16. Create zm database (mysql < db/zm_create.sql)
17. Create zm user (grant all on zm.* to '<your zm db user>'@'localhost' identified by '<your zm db pass>';)
18. Start up httpd (chkconfig --level 345 httpd on; service httpd start)
19. Set up ZM to auto-run (install scripts/zm /etc/init.d/; chkconfig --add zm)
20. Start ZM

rpms for centos 4

Posted: Tue Feb 06, 2007 8:56 am
by ma77hias
you should find most rpms needed for ZM on
[url]http://dag.wieers.com/rpm/packages.php[/url]
even 64bit. Just add the repository to your yum and you should be fine.

I have started building rpms for centos3 and 4 for 32bit but I haven't got around to making these things available on the forum.

Posted: Tue Feb 06, 2007 3:57 pm
by Aketaton
Great :twisted:

You give me a lot of good infos :)

My weekend is going to be with ZM :)

Posted: Wed Feb 07, 2007 6:43 pm
by MILxDOT
Yeah, I really need to update that little howto. I run CentOS 4.4 x86_64 on all of my boxes. I will try to get the howto updated. If I had more time...I would like to create an installer similar to the Zimbra installer for RHEL/CentOS. One executable that asks you a couple questions and does everything. The first thing that I normally tell people to do is download the rpmforge repository setup file and install it like: wget http://dag.wieers.com/packages/rpmforge ... x86_64.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm

One of the most common questions that I get with zoneminder setups is where do I find all of the dependent rpms? If you install the rpmforge repository file above you can then search the repository for packages by doing yum list ffmpeg* and then yum install ffmpeg-version.rpm. I like using the rpmforge packages because upgrading is a snap...just type yum -y update.

I may contact cordel and see if we can work together in creating a single file/install script that uses the rpmforge repository, etc. Maybe he has already done this??

Posted: Thu Feb 08, 2007 8:34 am
by Aketaton
miket wrote:Yeah, I really need to update that little howto. I run CentOS 4.4 x86_64 on all of my boxes. I will try to get the howto updated. If I had more time...I would like to create an installer similar to the Zimbra installer for RHEL/CentOS. One executable that asks you a couple questions and does everything. The first thing that I normally tell people to do is download the rpmforge repository setup file and install it like: wget http://dag.wieers.com/packages/rpmforge ... x86_64.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm

One of the most common questions that I get with zoneminder setups is where do I find all of the dependent rpms? If you install the rpmforge repository file above you can then search the repository for packages by doing yum list ffmpeg* and then yum install ffmpeg-version.rpm. I like using the rpmforge packages because upgrading is a snap...just type yum -y update.

I may contact cordel and see if we can work together in creating a single file/install script that uses the rpmforge repository, etc. Maybe he has already done this??
That would be great :)

I like CentOS and I want to make a clean install of ZM. This weekend I will try and let you know.