debian install bombs for 1.24.2-1 Fixed, see my last post

Forum for questions and support relating to the 1.24.x releases only.
Locked
skyking
Posts: 84
Joined: Sat Nov 03, 2007 4:07 am

debian install bombs for 1.24.2-1 Fixed, see my last post

Post by skyking »

Debian 5.0
Kernel 2.6.26-1-amd64
Dell T105 AMD server
1Gig ram

apt-get install bombs at:

Setting up zoneminder (1.24.2-1) ...
Starting ZoneMinder: Can't locate ZoneMinder.pm in @INC (@INC contains: /usr/local/share/perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /usr/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess 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)



I have 1.24.1+b1 installed on two different machines at home, worked fine both times.

how would I get the older version using apt? I tried specifying a version but it was not found.
Last edited by skyking on Sat Oct 24, 2009 4:10 am, edited 1 time in total.
nsaspook
Posts: 5
Joined: Thu Jul 07, 2005 3:04 am

Re: debian installation bombs for 1.24.2-1

Post by nsaspook »

skyking wrote:Debian 5.0
Kernel 2.6.26-1-amd64
Dell T105 AMD server
1Gig ram

apt-get install bombs at:

Setting up zoneminder (1.24.2-1) ...
Starting ZoneMinder: Can't locate ZoneMinder.pm in @INC (@INC contains: /usr/local/share/perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /usr/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess 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)



I have 1.24.1+b1 installed on two different machines at home, worked fine both times.

how would I get the older version using apt? I tried specifying a version but it was not found.
Try this.
cd /usr/local/share/perl/5.10.0
ln -s /usr/share/perl/5.10.0/ZoneMinder.pm .
ln -s /usr/share/perl/5.10.0/ZoneMinder .
skyking
Posts: 84
Joined: Sat Nov 03, 2007 4:07 am

Post by skyking »

That did not change it, but thank you for taking a stab at it.
nsaspook
Posts: 5
Joined: Thu Jul 07, 2005 3:04 am

Post by nsaspook »

skyking wrote:That did not change it, but thank you for taking a stab at it.
What directory is ZoneMinder.pm located? Creating a link from the actual location to a perl searched location should fix this.
skyking
Posts: 84
Joined: Sat Nov 03, 2007 4:07 am

Post by skyking »

Thanks!

I'll go post the bugfix next.

here's what I did:

cd /usr/share/perl/5.10.0

cp -R * ../5.10

apt-get install zoneminder

EDIT:
Better fix, edit /usr/bin/zmpkg.pl

It has a bad path to the custom perl install

Code: Select all


# ==========================================================================
#
# Don't change anything below here
#
# ==========================================================================

use lib '/usr/share/perl/5.10.0'; # Include custom perl install path      
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Re: debian install bombs for 1.24.2-1 Fixed, see my last pos

Post by PeterHoward »

skyking wrote:Debian 5.0
Kernel 2.6.26-1-amd64
Dell T105 AMD server
1Gig ram

apt-get install bombs at:

Setting up zoneminder (1.24.2-1) ...
Starting ZoneMinder: Can't locate ZoneMinder.pm in @INC (@INC contains: /usr/local/share/perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /usr/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
failure
I've just confirmed that the package installs eplicitly at /usr/share/perl/5.10.0, rather than at /usr/share/perl/5.10

Not sure why; in the short-term you could downgrade to perl 5.10.0 Meanwhile, I'll try to work out why the package wants to do that.

PJH
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post by PeterHoward »

skyking wrote: Better fix, edit /usr/bin/zmpkg.pl

It has a bad path to the custom perl install

Code: Select all


# ==========================================================================
#
# Don't change anything below here
#
# ==========================================================================

use lib '/usr/share/perl/5.10.0'; # Include custom perl install path      
Missed that when I commented above; I know where that line is coming from, don't know why it resolves to 5.10.x rather than just 5.10. I'm going to play with that and see if that will get rid of the problem . . .
skyking
Posts: 84
Joined: Sat Nov 03, 2007 4:07 am

Post by skyking »

Peter, that is my edit. It did resolve to 5.10, but my install was at 5.10.0, and I presumed that was what is happening with the debian perl install now.
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post by PeterHoward »

I think the problem is that that line makes it resolve on the builder's side, rather than doing the default install (I could be wrong though). Anyway that line's gone and there is an updated package on its way into the Debian repository.
Locked