I've created a CentOS VM and built ZoneMinder from source, but I'm not quite there yet... I took the relevant parts from this article, to do the build. After a couple of failed attempts, I ended up compiling with the following uptions: -
Code: Select all
ZoneMinder-1.24.4# ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS="-D__STDC_CONSTANT_MACROS"
Code: Select all
# uname -a
Linux centos.hq.rainbow-it.net 2.6.32-71.29.1.el6.i686 #1 SMP Mon Jun 27 18:07:00 BST 2011 i686 i686 i386 GNU/Linux
# cat /etc/redhat-release
CentOS Linux release 6.0 (Final)
Code: Select all
# service zm start
Starting ZoneMinder: 08/13/2011 21:36:04.468277 zmpkg[1915].INF [Command: start]
Aug 13 21:36:04 centos zmpkg[1915]: INF [Command: start]
/usr/local/bin/zmfix: error while loading shared libraries: libswscale.so.2: cannot open shared object file: No such file or directory
[FAILED]
Code: Select all
08/13/2011 21:36:05.738210 zmpkg[1915].ERR [Unable to run "sudo -u apache /usr/local/bin/zmfix", output is ""]
Code: Select all
Aug 13 21:36:05 centos zmpkg[1915]: ERR [Unable to run "sudo -u apache /usr/local/bin/zmfix", output is ""]
Code: Select all
# locate libswscale.so.2
/home/chrisp/ffmpeg/libswscale/libswscale.so.2
/usr/local/lib/libswscale.so.2
/usr/local/lib/libswscale.so.2.0.0
# ls -l /usr/local/lib/libswscale.so*
lrwxrwxrwx. 1 root 19 Aug 13 17:47 /usr/local/lib/libswscale.so -> libswscale.so.2.0.0
lrwxrwxrwx. 1 root 19 Aug 13 20:53 /usr/local/lib/libswscale.so.2 -> libswscale.so.2.0.0
-rwxr-xr-x. 1 root 252040 Aug 13 17:47 /usr/local/lib/libswscale.so.2.0.0
# file /usr/local/lib/libswscale.so*
/usr/local/lib/libswscale.so: symbolic link to `libswscale.so.2.0.0'
/usr/local/lib/libswscale.so.2: symbolic link to `libswscale.so.2.0.0'
/usr/local/lib/libswscale.so.2.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
Code: Select all
# grep ZM_PATH_LIB /usr/local/etc/zm.conf
ZM_PATH_LIB=/usr/local/lib
Also, when surfing to the GUI, I get a blank page and the following error in my VirtualHost error_log: -
Code: Select all
[Sat Aug 13 21:56:51 2011] [error] [client 10.6.8.55] PHP Parse error: syntax error, unexpected $end in /var/www/html/zm/includes/functions.php on line 2393
I look forward to any help you can provide.
Cheers,
--
ChrisP