Page 1 of 1
debian install bombs for 1.24.2-1 Fixed, see my last post
Posted: Fri Oct 23, 2009 4:25 pm
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.
Re: debian installation bombs for 1.24.2-1
Posted: Sat Oct 24, 2009 2:05 am
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 .
Posted: Sat Oct 24, 2009 2:44 am
by skyking
That did not change it, but thank you for taking a stab at it.
Posted: Sat Oct 24, 2009 3:44 am
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.
Posted: Sat Oct 24, 2009 4:10 am
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
Re: debian install bombs for 1.24.2-1 Fixed, see my last pos
Posted: Sun Nov 01, 2009 5:53 am
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
Posted: Sun Nov 01, 2009 7:04 am
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 . . .
Posted: Sun Nov 01, 2009 1:39 pm
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.
Posted: Sat Nov 07, 2009 4:10 am
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.