CentOS 5.1 and ZoneMinder 1.23.3 (stuck)
Posted: Fri May 23, 2008 12:09 am
OK, I have been all over the forum trying to put together a step by step on installing the latest ZoneMinder on the latest CentOS, but I have hit a snag.
Here are the steps I have taken so far:
After I do a "make" for ZoneMinder I get an error:
Any ideas as to where I should go next?
Here are the steps I have taken so far:
Code: Select all
I start from within /root/
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
wget http://www2.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz
wget http://www.zoneminder.com/fileadmin/downloads/cambozola.jar
yum install mysql mysql-bench mysql-server mysql-devel mysqlclient10 php php-gd php-mysql httpd gcc pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools perl-Date-Manip perl-Time-HiRes perl-LWP-UserAgent-Determined perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Module-Load
yum -y update
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/
./configure --enable-gpl --enable-swscale --prefix=/usr
make
make install
make install-libs
chkconfig httpd on
chkconfig mysqld on
chkconfig ntpd on
service httpd start
service mysqld start
service ntpd start
cd /root/
tar -zxvf ZoneMinder-1.23.3.tar.gz
cd ZoneMinder-1.23.3/
The file you would need to change is zm_mpeg.h in src/ and change the following two lines in that file:
1. include <ffmpeg>
2. include <ffmpeg>
Would have to be canged to:
1. include <libavformat>
2. include <libswscale>
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache --with-ffmpeg=/usr ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass
make
Code: Select all
/usr/lib/libavformat.a(matroskadec.o): In function `matroska_parse_block':
/root/ffmpeg/libavformat/matroskadec.c:2920: undefined reference to `BZ2_bzDecompressInit'
/root/ffmpeg/libavformat/matroskadec.c:2929: undefined reference to `BZ2_bzDecompress'
/root/ffmpeg/libavformat/matroskadec.c:2932: undefined reference to `BZ2_bzDecompressEnd'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.23.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.23.3'
make: *** [all] Error 2