Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Forum for questions and support relating to the 1.25.x releases only.
Post Reply
fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Wed Dec 12, 2012 5:23 pm

Hi, i'm new in ubuntu and in ZoneMinder.
Is there anyone who can help me with the installation code?
I want install it from source because I have to change some code files that cause errors in the log with my foscam.I have done the following:

Upgrade the package repository:
sudo apt-get update && sudo apt-get upgrade

Install all required dependencies:
sudo apt-get install build-essential ffmpeg libmysqlclient-dev libjpeg-dev libssl-dev libdate-manip-perl wget liblwp-useragent-determined-perl libavformat-dev libphp-serialization-perl libswscale-dev joe

Get Zoneminder:
wget http://www.zoneminder.com/downloads/Zon ... 5.0.tar.gz

Extract Zoneminder and change permission:
sudo tar xvfz ZoneMinder-1.25.0.tar.gz -C /usr/local/
sudo chown -R $(whoami) /usr/local/ZoneMinder-1.25.0

Configure Zoneminder:
cd /usr/local/ZoneMinder-1.25.0
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin/ --with-webuser=www-data --with-webgroup=www-data ZM_DB_USER=zm ZM_DB_NAME=zm ZM_DB_PASS=yourpassword ZM_SSL_LIB=openssl

now when i do MAKE ...
make: *** No targets specified and no makefile found. Stop.

Help me. Thanks and excuse my horrible english.

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Thu Dec 13, 2012 3:22 pm

I'm lost! :shock:

kuehnem
Posts: 10
Joined: Wed Dec 12, 2012 3:47 am

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by kuehnem » Thu Dec 13, 2012 9:46 pm

fabietto wrote:I'm lost! :shock:
First, DON'T PANIC!

Ok, seriously though, it's easier than you think. How about starting here: http://www.zoneminder.com/wiki/index.ph ... e_easy_way

The instructions are actually the same regardless of ubuntu 32/64bit or 12.10 or 12.04.1. I would recommend 12.04.1 just since it's LTS, but 12.10 is fine.

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Fri Dec 14, 2012 7:09 am

Ok. First of all, thank you.
Now, download ubuntu 12.04.1 LTS and install it.
I will follow your recommendations and will post the results in a day.
:wink:

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Wed Dec 19, 2012 1:50 pm

I lost a few days ... but nothing! I am unable to install zoneminder 1.25 source on ubuntu 12.04/12.10. I found in forum version livecd iso... but ubuntu 11.10. Someone could create a livecd with ubuntu latest version? Helppppp.... :?

chriswiggins
Posts: 18
Joined: Fri Sep 28, 2012 2:52 am

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by chriswiggins » Wed Dec 19, 2012 9:03 pm

The problem is due to the libav/ffmpeg split and all the deprecated functions that resulted from this. Please see the HowTo I wrote to help you with this:

http://www.zoneminder.com/wiki/index.ph ... rom_source

Let me know how you get on. I haven't been very explanatory in the tutorial but following the steps will make sure it works.

Cheers
Chris

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Thu Dec 20, 2012 1:21 pm

Chris thanks for reply...now i begin...

1. Install ubuntu 12.94.1 LTS 32-bit on Intel® Core™2 CPU 6400 @ 2.13GHz × 2 - Ram 2GB
2. update system
3. restart

...to be continued... :)

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Thu Dec 20, 2012 2:06 pm

...install...

4. sudo apt-get install build-essential fakeroot dpkg-dev
5. sudo apt-get build-dep zoneminder
6. sudo apt-get install libapache2-mod-php5 php5 php5-mysql libmime-tools-perl libmime-lite-perl mysql-server mysql-client libarchive-zip-perl libdevice-serialport-perl ffmpeg libjs-mootools zip javascript-common libnet-sftp-foreign-perl

...perfect...

7. mkdir zoneminder_sources && cd zoneminder_sources
8. wget "https://launchpad.net/ubuntu/+archive/p ... rig.tar.gz"
9. wget "https://launchpad.net/ubuntu/+archive/p ... ian.tar.gz"
10. wget "https://launchpad.net/ubuntu/+archive/p ... buntu2.dsc"

..ok..

11. dpkg-source -x zoneminder_1.25.0-3ubuntu2.dsc
12. cd zoneminder-1.25.0/
13. dpkg-buildpackage -rfakeroot -b
14. cd .. && ls
15. sudo dpkg -i zoneminder_1.25.0-3ubuntu2_i386.deb

..perfect..now apache...

16. sudo cp /etc/zm/apache.conf /etc/apache2/sites-available/zoneminder
17. sudo a2ensite zoneminder
18. sudo service apache2 reload

PERFECT!
zoneminder is online at address http://localhost/zm

thanks chris...now i fix a little errors in the log. Apexis / Foscam.
I will continue this post should be of help to others. You've been very kind.

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Thu Dec 20, 2012 3:10 pm

first error:

zmc_m1 27689 WAR Corrupt JPEG data: 2 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63

solution:

1. gksudo nautilus
2. search "zm_jpeg.cpp" in /home/ubuntu/zoneminder_sources/zoneminder-1.25.0/src and open it
3. replace at row 62:

(zmerr->pub.format_message)( cinfo, buffer );
Warning( "%s", buffer );

with

/*(zmerr->pub.format_message)( cinfo, buffer );*/
/*Warning( "%s", buffer );*/

4. save and close
5. sudo su
6. cd zoneminder_sources/zoneminder-1.25.0
7. service zoneminder stop
8. dpkg-buildpackage -rfakeroot -b
9. cd ..
10. sudo dpkg -i zoneminder_1.25.0-3ubuntu2_i386.deb

fabietto
Posts: 10
Joined: Mon Dec 10, 2012 5:31 pm

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by fabietto » Thu Dec 20, 2012 4:50 pm

error 2: Shared data size conflict in shared_data for monitor ptz, expected 328, got 316

solution:

gksudo nautilus
open and replace in : usr/share/perl5/ZoneMinder/Memory.pm at row 130

#our $arch = int(3.2*length(~0));

with:

our $arch = 32;

save, close and restart zoneminder

chriswiggins
Posts: 18
Joined: Fri Sep 28, 2012 2:52 am

Re: Help to Install ZoneMinder 1.25.x - Ubuntu 12.10

Post by chriswiggins » Fri Dec 28, 2012 6:30 am

Fabietto: glad my guide worked! Was mildy worried it wasn't complete enough but turns out it was! :D

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests