Don't install zoneminder

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Guaro
Posts: 4
Joined: Sun Dec 15, 2019 8:09 am

Don't install zoneminder

Post by Guaro »

Hi

I tried install zoneminder in archlinux for AUR but show it error because it don't detect 'perl-sys-mmap'. It file is found in perl 5.30 and my system execute the perl 5.32 and this not have this file.

Code: Select all

[guaro@carambox zoneminder]$ makepkg -sri
==> Making package: zoneminder 1.34.26-1 (Sun 09 May 2021 04:02:50 PM -05)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating zoneminder-git git repo...
Fetching origin
  -> Found zoneminder-nginx.conf
  -> Found zoneminder-httpd.conf
  -> Found zoneminder-php.ini
  -> Found zoneminder.service
  -> Found zoneminder-tmpfile.conf
  -> Found fcgiwrap-multiwatch.service
  -> Found zmsetup.sh
==> Validating source files with sha256sums...
    zoneminder-git ... Skipped
    zoneminder-nginx.conf ... Passed
    zoneminder-httpd.conf ... Passed
    zoneminder-php.ini ... Passed
    zoneminder.service ... Passed
    zoneminder-tmpfile.conf ... Passed
    fcgiwrap-multiwatch.service ... Passed
    zmsetup.sh ... Passed
==> Extracting sources...
  -> Creating working copy of zoneminder-git git repo...
Reset branch 'makepkg'
==> Starting prepare()...
Auto-merging web/api/app/Controller/AppController.php
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Sendfile support: Linux/Solaris sendfile()
-- Could NOT find LibJWT (missing: LIBJWT_INCLUDE_DIR LIBJWT_LIBRARY) 
CMake Warning (dev) at cmake/Modules/CheckPrototypeDefinition_fixed.cmake:43 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "HAVE_MD5_OPENSSL" will no longer be dereferenced
  when the policy is set to NEW.  Since the policy is not set the OLD
  behavior will be used.
Call Stack (most recent call first):
  CMakeLists.txt:738 (check_prototype_definition)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - failed
-- Could NOT find PerlModules (missing: PERLMODULES_SYS_MMAP_MODULE) 
CMake Error at CMakeLists.txt:785 (message):
  Not all required perl modules were found on your system


-- Configuring incomplete, errors occurred!
See also "/home/guaro/Downloads/zoneminder/src/zoneminder-git/CMakeFiles/CMakeOutput.log".
See also "/home/guaro/Downloads/zoneminder/src/zoneminder-git/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
[guaro@carambox zoneminder]$ 

Code: Select all

Determining if the Perl module Sys::Mmap exists failed with the following error output:
Can't locate Sys/Mmap.pm in @INC (you may need to install the Sys::Mmap module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.


Determining if the Perl module Sys::Mmap exists failed with the following error output:
Can't locate Sys/Mmap.pm in @INC (you may need to install the Sys::Mmap module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Code: Select all

[guaro@carambox zoneminder]$ sudo pacman -Qqo '/usr/lib/perl5/5.30'
[sudo] password for guaro: 
perl-class-mix
perl-crypt-eksblowfish
perl-data-entropy
perl-data-float
perl-io-socket-multicast
perl-php-serialization
perl-sys-cpu
perl-sys-mmap
perl-uri-encode
[guaro@carambox zoneminder]$ 

Code: Select all

[guaro@carambox zoneminder]$ sudo pacman -Qqo '/usr/lib/perl5/5.32'
graphicsmagick
graphviz
hivex
imagemagick
libguestfs
libproxy
net-snmp
perl
perl-archive-zip
perl-b-hooks-endofscope
perl-class-inspector
perl-clone
perl-convert-binhex
perl-cpanel-json-xs
perl-crypt-rijndael
perl-data-dump
perl-data-optlist
perl-data-uuid
perl-date-manip
perl-datetime
perl-dbd-mysql
perl-dbi
perl-devel-stacktrace
perl-device-serialport
perl-dist-checkconflicts
perl-email-date-format
perl-encode-locale
perl-error
perl-eval-closure
perl-exception-class
perl-exporter-tiny
perl-file-listing
perl-file-sharedir
perl-file-sharedir-install
perl-html-parser
perl-html-tagset
perl-http-cookies
perl-http-daemon
perl-http-date
perl-http-message
perl-http-negotiate
perl-image-info
perl-inc-latest
perl-io-html
perl-io-socket-ssl
perl-json-maybexs
perl-libintl-perl
perl-libwww
perl-list-allutils
perl-list-moreutils
perl-list-moreutils-xs
perl-list-someutils
perl-list-utilsby
perl-lwp-mediatypes
perl-lwp-protocol-https
perl-mailtools
perl-mime-lite
perl-mime-tools
perl-mime-types
perl-module-build
perl-module-implementation
perl-mro-compat
perl-namespace-autoclean
perl-namespace-clean
perl-net-http
perl-net-ssleay
perl-number-bytes-human
perl-package-stash
perl-package-stash-xs
perl-params-classify
perl-params-util
perl-params-validate
perl-params-validationcompiler
perl-parse-yapp
perl-role-tiny
perl-sub-exporter
perl-sub-exporter-progressive
perl-sub-identify
perl-sub-install
perl-sys-meminfo
perl-test-fatal
perl-timedate
perl-try-tiny
perl-uri
perl-variable-magic
perl-www-robotrules
perl-xml-parser
[guaro@carambox zoneminder]$ 

Code: Select all

[guaro@carambox zoneminder]$ perl -e "use Sys::Mmap "
Can't locate Sys/Mmap.pm in @INC (you may need to install the Sys::Mmap module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
what should I do?

I'm Sorry for my bad english

Thank
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Don't install zoneminder

Post by Bluemax »

I once had such an issue when some perl modules were mixed up with AUR and CPAN releases. Try to uninstall the module and cleanly re-install it.
Post Reply