forked from ZoneMinder/zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrading from Source
Kyle Johnson edited this page Sep 13, 2013
·
2 revisions
- Stop ZoneMinder
- 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
- 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- Upgrade the database - this assumes you are upgrading from v1.26.0
zmupdate.pl --version=1.26.0
- Start ZoneMinder
- Puppet Module
- [FAQ] (https://github.com/ZoneMinder/ZoneMinder/wiki/FAQ)
- [Main Documentation] (https://github.com/ZoneMinder/ZoneMinder/wiki/Main-Documentation)