Posted: Fri Mar 04, 2011 4:29 pm
Any way to install this on a Ubuntu-System with a rpm file?
Yep, confirmed that "short_open_tag = Off" was the culprit - thanks.mastertheknife wrote:Im unable to reproduce this. Backed up my functions.php and replaced it with one from SVN rev 3304 (latest) and everything works including streaming.zoneminder wrote:Can you confirm what page you are getting this and also do a ls -l and an md5sum on functions.php?rambler wrote: I'm having the same problem with the 1.24.3 download - haven't tried SVN.
Do you have php short tags disabled in your php.ini? (running fedora?)
mastertheknife.
Code: Select all
[Thu Mar 10 16:19:28 2011] [error] [client 192.168.1.54] socket_sendto( /tmp/zms-762692s.sock ) failed: No such file or directory, referer: http://192.168.1.196/zm/index.php?view=watch&mid=1
[Thu Mar 10 16:19:28 2011] [error] [client 192.168.1.54] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-762692s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 119,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.1.196/zm/index.php?view=watch&mid=1
Code: Select all
root@debian6:/usr/share/zoneminder/tools/mootools# ls /tmp/zms-768265s.sock -al
srwxrwxrwx 1 www-data www-data 0 Mar 10 11:06 /tmp/zms-768265s.sock
Code: Select all
PHP Parse error: syntax error, unexpected $end in /var/lib/zm/www/includes/functions.php on line 2319
Enable php short tags in your php.iniaivs wrote:Hello, i installed ZineMinder 1.24.3 on Archlinux 2.6.37-ARCH, from the my package, and when i go to localhost/zm, i can't see the page.
In /var/log/httpd/error_logCode: Select all
PHP Parse error: syntax error, unexpected $end in /var/lib/zm/www/includes/functions.php on line 2319
Code: Select all
pwc: isoc_init() submit_urb 1 failed with error -19
Logging on localhost/zm works, zm starts but there is no video from camera I chmodded 777 /dev/video0 but still don't work... Camera works on other software eg. mplayer very well. Driver is loading fine and registering cam as /dev/video0:Pre-install
Edit your /etc/apt/sources.list as follows: Where in my original sources.list I have
deb xxxxxxxxxxxxxxxxxxx/debian/ lenny main
deb-src xxxxxxxxxxxxxxxxxxxx/debian/ lenny main
deb xxxxxxxxxxxxxxxx/ lenny/updates main
deb-src xxxxxxxxxxxxxxx/ lenny/updates main
Edit this so at the end of eash line it reads
deb xxxxxxxxxxxxxxx/debian/ lenny main contrib non-free
deb-src xxxxxxxxxxxxxxxxxxxx/debian/ lenny main contrib non-free
deb xxxxxxxxxxxxxxxxx/ lenny/updates main contrib non-free
deb-src xxxxxxxxxxxxxxxxx/ lenny/updates main contrib non-free
Then you'll be wanting to run
# apt-get update
and
# apt-get install build-essential apache2 mysql-server netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql libdbd-mysql-perl libpcre3-dev php5 php5-mysql libapache2-mod-auth-mysql libmysqlclient15-dev gnutls-bin ffmpeg pciutils
Course there'll be a whole load of dependencies to install so obviously 'Y' to the proceeding installation question.
Now might be an idea to 'ctrl+d, $ mkdir ~/zminder && cd ~/zminder' to keep all the following program files in the same place.
Before the installation can proceed, there's one more dependancy required, that of Perl's PHP::Serialisation library. This allows zoneminder to store data on rows in a serialised fashion. If this is the first time you've used the perl shell, it'll ask you some questions. Read them. But you'll probably be wanting to answer yes to all of them.
(You'll have to be root - 'sudo bash' for Ubuntu users)
# perl -MCPAN -e shell
install PHP::Serialization
exit
Then back to the folder:
[ctrl+d ]
$ cd ~/zminder
$ wget xxxxxxxxxxxxxxxxxZoneMinder-1.24.2.tar.gz
$ tar -zxvf ZoneMinder-1.24.2.tar.gz
Then obviously:
$ cd ZoneMinder-1.24.2
and then
$ ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=lib --with-ffmpeg=/usr/local
Sometimes (like in my case) there's a problem with the ssl headers so change the command line as follows:
$ ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=lib --with-ffmpeg=/usr/local ZM_SSL_LIB=openssl
So now that it's all configured, how about some funky shizzle?
$ make
[$ su]
# make install
Code: Select all
[21518.602424] pwc: Philips webcam module version 10.0.13 loaded.
[21518.602424] pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
[21518.602424] pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
[21518.602424] pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
[21518.602424] pwc: Philips SPC 900NC USB webcam detected.
[21518.626732] pwc: Registered as /dev/video0.
Code: Select all
03/24/11 00:13:37.042702 zmdc[12245].INF [Starting pending process, zmc -d /dev/video0]
03/24/11 00:13:37.045505 zmdc[12245].INF ['zmc -d /dev/video0' starting at 11/03/24 00:13:37, pid = 12291]
03/24/11 00:13:37.314112 zmdc[12245].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Code: Select all
#if HAVE_LIBAVCODEC
#ifdef __cplusplus
[...]
Code: Select all
#ifndef ZM_FFMPEG_H
#define ZM_FFMPEG_H
#if HAVE_LIBAVCODEC
#ifdef __cplusplus
extern "C" {
#endif
# if __WORDSIZE == 64
# define UINT64_C(c) c ## UL
# else
# define UINT64_C(c) c ## ULL
# endif
#include <libavutil/avutil.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#ifdef __cplusplus
}
#endif
Code: Select all
tar zxf mysql-5.1.56.tar.gz
cd mysql-5.1.56
./configure --prefix=/tmp/mysql
make && make install
Code: Select all
tar zxf ZoneMinder-1.24.3.tar.gz
cd ZoneMinder-1.24.3
./configure --prefix=/tmp/zm \
--with-mysql=/tmp/mysql \
[... lotsa options ...]
make || read
make install || read
Code: Select all
checking for mysql/mysql.h... no
configure: error: zm requires MySQL headers - check that MySQL development packages are installed
Code: Select all
*** 74,79 ****
--- 74,80 ----
AC_SUBST(MYSQL_CFLAGS)
LDFLAGS="${MYSQL_LIBS} $LDFLAGS"
+ CPPFLAGS="${MYSQL_CFLAGS} $CPPFLAGS"
FFMPEG_PREFIX=/usr
AC_ARG_WITH(ffmpeg,
You should get more info in your system log. Failing that set ZM_DBG_PRINT=1 in your environment and run zmc from the command line.stlth wrote: Logs from ZM after WebGUI start (fixed /tmp/zm issue by mkdir & chmod 777):
Code: Select all
03/24/11 00:13:37.042702 zmdc[12245].INF [Starting pending process, zmc -d /dev/video0] 03/24/11 00:13:37.045505 zmdc[12245].INF ['zmc -d /dev/video0' starting at 11/03/24 00:13:37, pid = 12291] 03/24/11 00:13:37.314112 zmdc[12245].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
I _think_ this may be the same issue as addressed by adding CPPFLAGS=-D__STDC_CONSTANT_MACROS to the configure line but I'm not sure I entirely understand everything you are addressing.wwwutz wrote: This is dirty, but the main issue is using configure to check for existence of header files in 'non-standard' locations. (not to blame zm; configure is the bad guy!). AC_CHECK_HEADER should not 'warn' or silently 'undef'... it should die()/exit/bailout. why does it 'check' and continue if there is no solution if the check fails ? in this case its more complicated: if <libavutil/avutil.h> is gone, there might be <ffmepg/avutil.h> worth using. but if _both_ do not exist then it should die()/exit/bailout.
anyways this won't fix it completely: AC_CHECK_HEADER / configure is the bad guy here. there is another issue with --with-mysql which i will explain in another post.
Thanks, this is a good suggestion. I think the --with-mysql parameter will probably disappear very soon in favour of just explicitly adding paths to CPPFLAGS, LDFLAGS etc on the configure line as that is a lot more flexible, if maybe not so obvious for inexperienced users.wwwutz wrote:Code: Select all
*** 74,79 **** --- 74,80 ---- AC_SUBST(MYSQL_CFLAGS) LDFLAGS="${MYSQL_LIBS} $LDFLAGS" + CPPFLAGS="${MYSQL_CFLAGS} $CPPFLAGS" FFMPEG_PREFIX=/usr AC_ARG_WITH(ffmpeg,
Should cut down on at least half the support questions!o FEATURE - Mapped memory (versus shared) is now the default.
seeforce wrote:Any way to install this on a Ubuntu-System with a rpm file?
Code: Select all
aptitude show alien
Code: Select all
Package: alien
State: not installed
Version: 8.81
Priority: optional
Section: admin
Maintainer: Joey Hess <joeyh@debian.org>
Uncompressed Size: 250 k
Depends: debhelper (>= 3), perl, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio
Suggests: patch, bzip2, lsb-rpm, lintian, lzma
Description: convert and install rpm and other packages
Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages into Debian packages, which can be
installed with dpkg.
It can also generate packages of any of the other formats.
This is a tool only suitable for binary packages.
Homepage: http://kitenet.net/~joey/code/alien/