Compile error

Forum for questions and support relating to the 1.28.x releases only.
Locked
jhmiller
Posts: 8
Joined: Sat Mar 01, 2014 9:52 am

Compile error

Post by jhmiller »

Compiling on wheezy and get this at the end.

Code: Select all

   debian/rules override_dh_install
make[1]: Entering directory `/tmp/ZoneMinder'
dh_install --fail-missing
dh_install: usr/lib/perl/5.14/perllocal.pod exists in debian/tmp but is not installed to anywhere
dh_install: usr/lib/perl5/auto/ZoneMinder/.packlist exists in debian/tmp but is not installed to anywhere
dh_install: missing files, aborting
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory `/tmp/ZoneMinder'
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Thanks for looking
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Compile error

Post by knight-of-ni »

Did you install any modules via CPAN before your built zoneminder?
If so, that is why a perllocal.pod showed up in your build. The best way to fix this is to uninstall those modules from CPAN, and then install the packaged versions of those modules. You should build & package the modules yourself if you cannot find someone else who has already done the work. Welcome to the world of package management. :-)

The .packlist file started showing up in the build files when on newer distros. I guess it is a "feature" of newer Perl's. For entertainment, you can Google .packlist and see heated debates on whether this file should always be included in your package or discarded. I thought I read about a flag you could pass to Perl during build time that would tell it not to generate that file... but I forget what it was. Instead, I chose to just include that in my package filelist. On RPM based distros, you do that by adding a reference to the file in question, in the rpm specfile, under the %files section. I don't know anything about building on Debian so maybe someone else can tell you how to do that for a Debian package.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked