How to install zm 1.24.1 from source on Ubuntu 8.10 - SOLVED

Forum for questions and support relating to the 1.24.x releases only.
jsylvia007
Posts: 116
Joined: Wed Mar 11, 2009 8:32 pm

Post by jsylvia007 »

Awesome.

I'm really glad they people are finding my guide helpful!
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

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
jsylvia007
Posts: 116
Joined: Wed Mar 11, 2009 8:32 pm

Post by jsylvia007 »

Great Find! I will look into getting that linked into my guide up on the wiki.

For my personal needs though, I don't think this will be an issue, as this box will more than likely not be upgraded until 1.24.x is actually available in the package repos, if ever.
allanE
Posts: 44
Joined: Mon Feb 09, 2009 1:19 pm
Location: Sharps Chapel,TN

Post by allanE »

Thanks for the excellent guide I found it works well with 9.04 beta with one addition. It requires sys-mmap to be installed or it will not compile with the "enable-mmap=yes" option.

Now if anyone can give the modifications to the guide for 64 bit it would be helpful.
Allan
johngc
Posts: 51
Joined: Sun May 25, 2008 4:38 pm

Post by johngc »

Thank you for the guide. I managed to use it with success to upgrade from my old 1.23 version :D .

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 :
./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
But get a 404 not found when I go to www.myserver.com/zm. Are there other settings I need to change?
allanE
Posts: 44
Joined: Mon Feb 09, 2009 1:19 pm
Location: Sharps Chapel,TN

Post by allanE »

sounds like it did not put "index.html in the zm directory. As you changed the install path in ./configure ,also change it in the cambozolla path as well as the line that removes existing "index.html" otherwise if the guide was followed with no errors it should work
Allan
johngc
Posts: 51
Joined: Sun May 25, 2008 4:38 pm

Post by johngc »

Sorry, I should have mentioned that I updated the other install commands to include the /zm location.

I can't remember if I saw the index.html file there now I think about it - I will try again. I assume that should be in the var/www/zm location and not /var/www?
johngc
Posts: 51
Joined: Sun May 25, 2008 4:38 pm

Post by johngc »

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'
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

FYI - I followed the instrcutiona....

Post by timf »

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.
elitenoobboy
Posts: 10
Joined: Mon Apr 06, 2009 7:02 am

Post by elitenoobboy »

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:

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]
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?
johngc
Posts: 51
Joined: Sun May 25, 2008 4:38 pm

Post by johngc »

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.
ThomasNovin
Posts: 29
Joined: Fri Jun 12, 2009 11:36 am

Post by ThomasNovin »

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 :)
Locked