Page 1 of 1

Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 9:34 am
by FeraTechInc
Has anybody tried to install from source on Ubuntu 10.04? I installed the latest FFMPEG and I can't compile 1.25.x It gives me the following error:
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
I heard that Zoneminder required a specific version however of FFMPEG however, I haven't found anything about which version it really is.

Any help would be appreciated.

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 2:02 pm
by jonathancnewcomb
Just

Code: Select all

sudo apt-get install zoneminder
it will resolve all dependencies automatically

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 2:21 pm
by FeraTechInc
I have tried that. It gives me the same error. Something I compiled messed up the version of ffmpeg.

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 2:22 pm
by jonathancnewcomb
Try the following:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 2:24 pm
by jonathancnewcomb
If you still get the error try the following

Code: Select all

sudo apt-get purge ffmpeg
sudo apt-get install ffmpeg

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 2:28 pm
by jonathancnewcomb
This is the version I am using and it functions:

Code: Select all

ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 18, 2012 3:42 pm
by jonathancnewcomb
When you read this, if you are still having problems please attach the output from the following command:

Code: Select all

dpkg -l
Please note that is a lower case L

Re: Install from source error on Ubuntu Server 10.04.

Posted: Wed Sep 19, 2012 8:53 am
by FeraTechInc
Error from:
sudo apt-get install zoneminder

Reading package lists... Done
Building dependency tree
Reading state information... Done
zoneminder is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up zoneminder (1.24.2-2build3) ...
Starting ZoneMinder: Can't open config file '/usr/local/etc/zm.conf': No such file or directory at /usr/local/share/perl/5.10.1/ZoneMinder/Config.pm line 100
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/share/perl/5.10.1/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Install from source error on Ubuntu Server 10.04.

Posted: Wed Sep 19, 2012 6:20 pm
by jonathancnewcomb
You are getting this because of the following line:

Code: Select all

1 not fully installed or removed.
Please do the following:

Code: Select all

sudo apt-get --purge remove zoneminder
sudo apt-get install --reinstall zoneminder
Then make sure your cache is clean:

Code: Select all

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

This should work.

Re: Install from source error on Ubuntu Server 10.04.

Posted: Wed Sep 19, 2012 7:46 pm
by FeraTechInc
Here is the result:

sudo apt-get install --reinstall zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libphp-serialization-perl
The following NEW packages will be installed:
libphp-serialization-perl zoneminder
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,626kB of archives.
After this operation, 7,070kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/universe libphp-serialization-perl 0.33-1 [10.8kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/universe zoneminder 1.24.2-2build3 [1,615kB]
Fetched 1,626kB in 1s (1,086kB/s)
Selecting previously deselected package libphp-serialization-perl.
(Reading database ... 277933 files and directories currently installed.)
Unpacking libphp-serialization-perl (from .../libphp-serialization-perl_0.33-1_all.deb) ...
Selecting previously deselected package zoneminder.
Unpacking zoneminder (from .../zoneminder_1.24.2-2build3_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libphp-serialization-perl (0.33-1) ...
Setting up zoneminder (1.24.2-2build3) ...
Starting ZoneMinder: Can't open config file '/usr/local/etc/zm.conf': No such file or directory at /usr/local/share/perl/5.10.1/ZoneMinder/Config.pm line 100
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/share/perl/5.10.1/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Install from source error on Ubuntu Server 10.04.

Posted: Thu Sep 20, 2012 4:54 pm
by jonathancnewcomb
Issue was resolved by doing the following:

1. Do not use the repos
2. Install ffmpeg

Code: Select all

sudo apt-get install ffmpeg
3. Download the source code
4. Extract source

Code: Select all

tar -xvf ZoneMinder-1.25.0.tar.gz
5. Edit zm_utils.cpp

Code: Select all

nano ZoneMinder-1.25.0/src/zm_utils.cpp
6. Add the following to the include section of the file

Code: Select all

#include <stdio.h>
7. Save by CTRL+O
8. Exit by CTRL+X

File will build normally

Re: Install from source error on Ubuntu Server 10.04.

Posted: Sun Sep 23, 2012 12:52 am
by snake61
On Ubuntu 10.04 LTS. Have installed dozens of times following the ZM Wiki for 10.04 to the exact letter. Never had a problem. First, however, had to make sure Ubuntu 10.04 LTS was up to date, then install ZM 1.24.XX

Re: Install from source error on Ubuntu Server 10.04.

Posted: Tue Sep 25, 2012 4:27 pm
by jonathancnewcomb
Yes I definitely tried that, I believe it came down to the gcc compiler. The STDIO library in later versions (guessing here) must be implied. Something was out of date on this box and apt wasnt updating it for some reason. I didnt go through the sources to check if everything was current, I just wanted to get the source to compile. Luckily it was at the top :P