You are not logged in.

#1 2015-06-04 03:30:27

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

[SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#2 2015-06-04 09:18:25

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,447

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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 .


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2015-06-04 15:00:22

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#4 2015-06-04 15:27:57

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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)


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#5 2015-06-04 15:42:46

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#6 2015-06-04 15:48:04

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

shtnarg wrote:

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/.


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#7 2015-06-04 15:55:30

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#8 2015-06-04 16:03:02

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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)


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#9 2015-06-04 16:09:52

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#10 2015-06-04 16:25:46

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

Can you also post the output of

env

?


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#11 2015-06-04 16:37:48

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#12 2015-06-04 16:40:14

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

shtnarg wrote:
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)


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#13 2015-06-04 16:44:03

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#14 2015-06-04 16:49:08

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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.


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#15 2015-06-04 16:56:14

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

#16 2015-06-04 17:00:25

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

shtnarg wrote:

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)


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#17 2015-06-04 17:04:15

shtnarg
Member
From: Onterrible Canada
Registered: 2010-11-23
Posts: 26
Website

Re: [SOLVED] zoneminder, Only one of PREFIX or INSTALL_BASE can be given

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

Board footer

Powered by FluxBB