You are not logged in.
Trying to install zoneminder with packer.
[100%] Building ZoneMinder perl modules
Only one of PREFIX or INSTALL_BASE can be given. Not both.
scripts/ZoneMinder/CMakeFiles/zmperlmodules.dir/build.make:49: recipe for target 'scripts/ZoneMinder/CMakeFiles/zmperlmodules' failed
make[2]: *** [scripts/ZoneMinder/CMakeFiles/zmperlmodules] Error 255
CMakeFiles/Makefile2:430: recipe for target 'scripts/ZoneMinder/CMakeFiles/zmperlmodules.dir/all' failed
make[1]: *** [scripts/ZoneMinder/CMakeFiles/zmperlmodules.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
The build failed.
How do I select PREFIX or INSTALL_BASE? Is this an environment variable?
Thanks for your help.
Last edited by shtnarg (2015-06-04 17:04:59)
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
If you build with makepkg, does it fail also ?
(to many aur dependecies to try it out for me)
If so, it may be an error in the PKGBUILD .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Please forgive my ignorance.
I tried with makepkg, but got the same result. BUT I'm using the same PKGBUILD from aur (yaourt -G zoneminder)
How do I use makepkg without that PKGBUILD?
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
It compiled fine for me in a clean chroot even though one of its dependencies (perl-expect) failed at check stage. Did you update all the AUR dependencies? Is your system fully updated? Does it works if you do a clean rebuild by passing the option --cleanbuild to makepkg?
Last edited by mauritiusdadd (2015-06-04 15:28:36)
Offline
I got passed that 'perl-expect' issue, packer wouldn't install it? But yaourt did!
I am 100% up to date as of yesterday 10 seconds ago, Same with AUR.
--cleanbuild gave me the same result
[100%] Building ZoneMinder perl modules
Only one of PREFIX or INSTALL_BASE can be given. Not both.
scripts/ZoneMinder/CMakeFiles/zmperlmodules.dir/build.make:49: recipe for target 'scripts/ZoneMinder/CMakeFiles/zmperlmodules' failed
make[2]: *** [scripts/ZoneMinder/CMakeFiles/zmperlmodules] Error 255
CMakeFiles/Makefile2:430: recipe for target 'scripts/ZoneMinder/CMakeFiles/zmperlmodules.dir/all' failed
make[1]: *** [scripts/ZoneMinder/CMakeFiles/zmperlmodules.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build zoneminder.
==> Restart building zoneminder ? [y/N]
The clean chroot is chiming in the back of my head. It must be something in my perl config, but WHAT!?
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
I got passed that 'perl-expect' issue, packer wouldn't install it? But yaourt did!
Just to be sure, can you post the output of the following command?
pacman -Qi perl-expect
Also try to download the source tarball containing the PKGBUILD directly from the AUR page https://aur.archlinux.org/packages/zoneminder/.
Offline
You got it!
pacman -Qi perl-expect
Name : perl-expect
Version : 1.32-1
Description : automate interactions with command line programs that expose a text terminal
interface.
Architecture : any
URL : http://search.mcpan.org/dist/Expect
Licenses : PerlArtistic GPL
Groups : None
Provides : None
Depends On : perl-io-tty
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 118.00 KiB
Packager : Unknown Packager
Build Date : Wed Jun 3 18:11:17 2015
Install Date : Wed Jun 3 18:11:27 2015
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : None
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
Ok, for me the installed size is 146.00 KiB... Can you try to rebuild perl-expect with makepkg (remember to pass the option --nocheck in order to avoid the error)?
Last edited by mauritiusdadd (2015-06-04 16:03:11)
Offline
pacman -Qi perl-expect
Name : perl-expect
Version : 1.32-1
Description : automate interactions with command line programs that expose a text terminal
interface.
Architecture : any
URL : http://search.mcpan.org/dist/Expect
Licenses : PerlArtistic GPL
Groups : None
Provides : None
Depends On : perl-io-tty
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 118.00 KiB
Packager : Unknown Packager
Build Date : Wed Jun 3 18:11:17 2015
Install Date : Wed Jun 3 18:11:27 2015
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : None
Same thing, I tried without the --nocheck option and it still completed successfully, but still 118kb?
Just for clarity, when I'm using makepkg, I first issue a
yaourt -G perl-expect
cd perl-expect
makepkg
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
Offline
Just stripped my SSH connections, out of paranoia.
env
XDG_SESSION_ID=c1
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=24
PERL5LIB=/home/grant/perl5/lib/perl5
PERL_MB_OPT=--install_base "/home/grant/perl5"
SSH_TTY=/dev/pts/0
USER=grant
MAIL=/var/spool/mail/grant
PATH=/home/grant/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/scripts:/scripts/irout:/scripts/temp:/scripts/relays:/scripts/sab:/scripts/arduino:/scripts/milight:/scripts/nad
PWD=/home/grant/zm/zoneminder/perl-expect
EDITOR=vim
LANG=C
SHLVL=1
HOME=/home/grant
PERL_LOCAL_LIB_ROOT=/home/grant/perl5
LOGNAME=grant
SSH_CONNECTION=24.
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=localhost:10.0
PERL_MM_OPT=INSTALL_BASE=/home/grant/perl5
_=/usr/bin/env
OLDPWD=/home/grant/zm/zoneminder
I think you're onto something here..
these lines don't look right
PERL_MM_OPT=INSTALL_BASE=/home/grant/perl5
PERL5LIB=/home/grant/perl5/lib/perl5
PERL_MB_OPT=--install_base "/home/grant/perl5"
PERL_LOCAL_LIB_ROOT=/home/grant/perl5
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
PERL_MM_OPT=INSTALL_BASE=/home/grant/perl5
This is the culprit, now you must find where it is defined... If I were in you I'll look first into ~/.bashrc and ~/.bash_profile
Last edited by mauritiusdadd (2015-06-04 16:41:06)
Offline
GENIUS!
A snippet from my .bashrc
PATH="/home/grant/perl5/bin${PATH+:}${PATH}"; export PATH;
PERL5LIB="/home/grant/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/grant/perl5${PERL_LOCAL_LIB_ROOT+:}${PERL_LOCAL_LIB_ROOT}"; export PERL_L
PERL_MB_OPT="--install_base \"/home/grant/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/grant/perl5"; export PERL_MM_OPT;
Should I just comment these lines? where the hell did they come from!?
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
I'm not a perl expert but it seems that you have a custom installation of perl in your home. Did you try to manually build perl invoking directly make and make install? However I think it is safe to comment those lines.
Offline
That explains it, I'm far from a perl expert myself. In fact I kind of hate it....
I commented the lines but no change. I assume the correct PATH may need to be specified.
Thank you for your guidance!
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline
I commented the lines but no change.
Those changes have effect only in the new terminal windows. Just close the current terminal window and open a new one... what does env say now?
--edit: typo
Last edited by mauritiusdadd (2015-06-04 17:40:20)
Offline
I ran bash, assuming that would refresh env... wrong.
Closed my ssh session, reconnected and.
pacman -Qi zoneminder
Name : zoneminder
Version : 1.28.1-2
Description : Capture, analyse, record and monitor video security cameras
Architecture : x86_64
URL : https://github.com/ZoneMinder/ZoneMinder/releases
Licenses : GPL
Groups : None
Provides : None
Depends On : mariadb perl-dbd-mysql perl-dbi apache php php-apache php-gd php-mcrypt
perl-php-serialization perl-libwww perl-net-sftp-foreign ffmpeg vlc
perl-sys-mmap gnutls polkit perl-expect perl-archive-zip perl-date-manip
perl-mime-lite perl-mime-tools
Optional Deps : netpbm [installed]
cambozola
perl-time-modules [installed]
perl-x10 [installed]
perl-astro-suntime [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 21.02 MiB
Packager : Unknown Packager
Build Date : Thu Jun 4 13:01:14 2015
Install Date : Thu Jun 4 13:01:31 2015
Install Reason : Explicitly installed
Install Script : Yes
Validated By : None
YOU ROCK! Thanks a million!
"I'm not a racist, I'm a bigot... there is a difference!" - Jim Jefferies
Offline