Page 1 of 1

Need help installing on Ubuntu

Posted: Mon Feb 23, 2015 10:33 pm
by lvthunder
I had an old version of Zoneminder (1.24 I think) and I got the bright idea of getting everything up to date. I first installed the Ubuntu upgrade 2 times bringing me to 14.04. I then tried using this from the wiki.

Ubuntu Server 14.04 64-bit with Zoneminder 1.28.1 the easy way

It didn't work so I uninstalled zm and deleted the database. So I'm not looking for an upgrade. I just need it to install now. Here is the error message I'm getting. Any help would be greatly appreciated.

Code: Select all

Setting up zoneminder (1.28.1-trusty-1) ...
Stopping ZoneMinder: Zoneminder already stopped

Can't locate ZoneMinder/Debug.pm in @INC (you may need to install the ZoneMinder      ::Debug module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/      share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/      perl/5.18 /usr/local/lib/site_perl .) at /usr/local/bin/zmupdate.pl line 51.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 51.
dpkg: error processing package zoneminder (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Need help installing on Ubuntu

Posted: Tue Feb 24, 2015 9:17 pm
by knight-of-ni
See how it is complaining about files under /usr/local/ ?
That means you have stale files still on your system from zm 1.24. You don't have a clean system, and any attempt to install a different version over the top of that is going to cause problems.

Uninstall everything zoneminder related.
Uninstall the zoneminder package if it is installed:

Code: Select all

sudo apt-get purge zoneminder
Delete the zoneminder database.

And most importantly, navigate to the original zoneminder 1.24 source folder on your local drive and execute:

Code: Select all

sudo make uninstall
Make sure all files are gone:

Code: Select all

sudo updatedb
sudo locate zm.conf
sudo locate zoneminder
Once you know all files are gone, then repeat Bill's Ubuntu the Easy way guide

Re: Need help installing on Ubuntu

Posted: Wed Feb 25, 2015 12:57 am
by lvthunder
I did all that and when I did locate it was blank. I still get this though.

Code: Select all

Can't locate ZoneMinder/Debug.pm in @INC (you may need to install the ZoneMinder::Debug module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/local/bin/zmupdate.pl line 51.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 51.
dpkg: error processing package zoneminder (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for ureadahead (0.100.0-16) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Need help installing on Ubuntu

Posted: Wed Feb 25, 2015 1:04 am
by knight-of-ni
This right here:
/usr/local/bin/zmupdate.pl line 51
means you (still) have stale files on your system.
You have to find and delete all old files off your system.

When you install from a package, rather than from source, that file will be here:
/usr/bin/zmupdate.pl

Re: Need help installing on Ubuntu

Posted: Wed Feb 25, 2015 2:57 am
by lvthunder
Thank you so much. I deleted all the zm* files in that folder and it worked.