Skip to content

Upgrading from Source

Kyle Johnson edited this page Sep 13, 2013 · 2 revisions
  1. Stop ZoneMinder
  2. Grab the newest code from https://github.com/ZoneMinder/ZoneMinder/releases - this example assumes v1.26.3
wget https://github.com/ZoneMinder/ZoneMinder/archive/v1.26.3.tar.gz && tar zxf v1.26.3.tar.gz
  1. Build the code. You may need to substitute some of the lines in configure with your own preferences
cd v1.26.3
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf

export LD_LIBRARY_PATH="/usr/local/lib:/opt/libjpeg-turbo/lib:$LD_LIBRARY_PATH"

DEB_HOST_GNU_TYPE=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CXXFLAGS=" -DZM_FFMPEG_CVS -DHAVE_LIBCRYPTO -msse2 -I/usr/local/include"

CXXFLAGS="$CXXFLAGS" ./configure --with-libarch=lib/$DEB_HOST_GNU_TYPE --disable-debug \
--host=$DEB_HOST_GNU_TYPE --build=$DEB_BUILD_GNU_TYPE --with-mysql=/usr \
--with-webdir=/var/www/zm --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin \
--with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=no \
--enable-mmap=yes ZM_SSL_LIB=openssl ZM_DB_USER=zm ZM_DB_PASS=zm

make
sudo make install
  1. Upgrade the database - this assumes you are upgrading from v1.26.0
zmupdate.pl --version=1.26.0
  1. Start ZoneMinder

Clone this wiki locally