How to install zm 1.24.1 from source on Ubuntu 8.10 - SOLVED
-
- Posts: 116
- Joined: Wed Mar 11, 2009 8:32 pm
I've hit a (potential) problem, and I'm not sure what the knock-on effects are.
If an application in the repositories needs ffmpeg, synaptic/apt-get/aptitude will try and install the repo version.
I think that this can be worked round using checkinstall as in http://ubuntuforums.org/showthread.php?t=786095
Nick
If an application in the repositories needs ffmpeg, synaptic/apt-get/aptitude will try and install the repo version.
I think that this can be worked round using checkinstall as in http://ubuntuforums.org/showthread.php?t=786095
Nick
-
- Posts: 116
- Joined: Wed Mar 11, 2009 8:32 pm
Thank you for the guide. I managed to use it with success to upgrade from my old 1.23 version .
I do, however, have one question. I used to have ZoneMinder installed in /var/www/zm and used it by going to www.myserver.com/zm. I played around with the installation and tried :
I do, however, have one question. I used to have ZoneMinder installed in /var/www/zm and used it by going to www.myserver.com/zm. I played around with the installation and tried :
But get a 404 not found when I go to www.myserver.com/zm. Are there other settings I need to change?./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser \
ZM_DB_PASS=zmpass --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data
Ok, I tried it again and where applicable changed all the /var/www to /var/www/zm
I can see that all the files are created including index.php in the /var/www/zm folder but for some reaason cannot browse to it.
I currently have two dir's in my /var/www folder 'webaccess' and 'zm' I have ensured that there is no index.html and so when I open 192.168.1.101 in my browser I can see both 'webaccess' and 'zm' It I selecte 'webaccess' the relevant page opens up.
If I select 'zm' I get a "Not Found. The requested URL /zm/ was not found on this server.
Could it be something to do with permissions? What settings should 'zm' be - it currently is root but then so is 'webaccess'
I can see that all the files are created including index.php in the /var/www/zm folder but for some reaason cannot browse to it.
I currently have two dir's in my /var/www folder 'webaccess' and 'zm' I have ensured that there is no index.html and so when I open 192.168.1.101 in my browser I can see both 'webaccess' and 'zm' It I selecte 'webaccess' the relevant page opens up.
If I select 'zm' I get a "Not Found. The requested URL /zm/ was not found on this server.
Could it be something to do with permissions? What settings should 'zm' be - it currently is root but then so is 'webaccess'
FYI - I followed the instrcutiona....
on a fresh install of Ubuntu 9.04 and everything that I've tested so far works perfectly.
I've edited my original post on this thread to mention 9.04.
I've edited my original post on this thread to mention 9.04.
-
- Posts: 10
- Joined: Mon Apr 06, 2009 7:02 am
First of all, thanks for the guide. It helped me with installing 1.24.1.
2nd, I keep running into a 'can't get shared memory id' problem, according to the logs:
Have you ever run into it/ know how to fix it?
Also, is there any way to change the path of the zoneminder webserver back to /var/www/zm?
2nd, I keep running into a 'can't get shared memory id' problem, according to the logs:
Code: Select all
tail -f zm*
==> zmaudit.log <==
==> zmdc.log <04> zmupdate.log <04> zmwatch.log <04> zmdc.log <==
04/20/2009 00:44:16.079085 zmdc[11348].INF [Starting pending process, zmc -m 1]
04/20/2009 00:44:16.120709 zmdc[11348].INF ['zmc -m 1' starting at 09/04/20 00:44:16, pid = 11455]
04/20/2009 00:44:16.140134 zmdc[11348].ERR ['zmc -m 1' exited abnormally, exit status 255]
04/20/2009 00:44:56.047626 zmdc[11348].INF [Starting pending process, zmc -m 1]
04/20/2009 00:44:56.086643 zmdc[11348].INF ['zmc -m 1' starting at 09/04/20 00:44:56, pid = 11520]
04/20/2009 00:44:56.209897 zmdc[11348].ERR ['zmc -m 1' exited abnormally, exit status 255]
Also, is there any way to change the path of the zoneminder webserver back to /var/www/zm?
Not sure how to fix your memory problems but I managed to install to the /var/www/zm directory in the end (see my posts above). It turned out that I had used the correct command but as I was upgrading from a previous version apache still had some links to the old directory. It was pointing /www/var/zm to somewhere else. I can't remember exactly what file covered it - I will have alook later and come back.
-
- Posts: 29
- Joined: Fri Jun 12, 2009 11:36 am
For you that have a problem with generating videos with ffmpeg..
- Follow the instructions on the Wiki
- Edit zmdc.pl to read (starting from row 61):
$ENV{PATH} = '/bin:/usr/bin';
$ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
# preload libv4l2
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';
$ENV{LD_LIBRARY_PATH} = '$LD_LIBRARY_PATH:/usr/local/lib/';
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
- Edit zmvideo.pl to read (starting from row 54):
$ENV{PATH} = '/bin:/usr/bin';
$ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
$ENV{LD_LIBRARY_PATH} = '$LD_LIBRARY_PATH:/usr/local/lib/';
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
Works for me!
This helps for two problems:
/usr/local/bin/ffmpeg: symbol lookup error: /usr/local/lib/libavdevice.so.52: undefined symbol: av_free_packet
+ one other that I cannot recall the exact error message
- Follow the instructions on the Wiki
- Edit zmdc.pl to read (starting from row 61):
$ENV{PATH} = '/bin:/usr/bin';
$ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
# preload libv4l2
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';
$ENV{LD_LIBRARY_PATH} = '$LD_LIBRARY_PATH:/usr/local/lib/';
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
- Edit zmvideo.pl to read (starting from row 54):
$ENV{PATH} = '/bin:/usr/bin';
$ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
$ENV{LD_LIBRARY_PATH} = '$LD_LIBRARY_PATH:/usr/local/lib/';
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
Works for me!
This helps for two problems:
/usr/local/bin/ffmpeg: symbol lookup error: /usr/local/lib/libavdevice.so.52: undefined symbol: av_free_packet
+ one other that I cannot recall the exact error message