Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Perl packages problem: PREFIX or INSTALL_BASE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Dark Shoyu
n00b
n00b


Joined: 05 Nov 2007
Posts: 46

PostPosted: Tue Jun 08, 2010 3:40 am    Post subject: [Solved] Perl packages problem: PREFIX or INSTALL_BASE Reply with quote

I'm trying to install, among other perl packages, the dev-perl/YAML-Tiny-1.41, but I get th following error:


* Using ExtUtils::MakeMaker
* perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/YAML-Tiny-1.41/image/
Checking if your kit is complete...
Looks good
Only one of PREFIX or INSTALL_BASE can be given. Not both.
* ERROR: dev-perl/YAML-Tiny-1.41 failed:
* Unable to build! (are you using USE="build"?)
*
* Call stack:
* ebuild.sh, line 54: Called src_configure
* environment, line 2710: Called perl-module_src_configure
* environment, line 2363: Called perl-module_src_prep
* environment, line 2421: Called die
* The specific snippet of code:
* perl Makefile.PL "$@" <<< "${pm_echovar}" || die "Unable to build! (are you using USE=\"build\"?)";
*
* If you need support, post the output of 'emerge --info =dev-perl/YAML-Tiny-1.41',
* the complete build log and the output of 'emerge -pqv =dev-perl/YAML-Tiny-1.41'.
* The complete build log is located at '/var/tmp/portage/dev-perl/YAML-Tiny-1.41/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-perl/YAML-Tiny-1.41/temp/environment'.
* S: '/var/tmp/portage/dev-perl/YAML-Tiny-1.41/work/YAML-Tiny-1.41'



I believe the error comes mainly from the fact about the "Only one of PREFIX or INSTALL_BASE can be given. Not both." message than the USE flag. Any ideas about how to solve it?




************************ (update)
Problem:

I found out the reason why it was happening. I installed the local::lib module and I was using some libraries at user scope for cpan. So, as for adding
Code:
eval $(perl -I$HOME/.perl/lib/perl5 -Mlocal::lib=$HOME/.perl)
to ~/.bashrc, it generated now enviroment codes for the user and, for instance, it generated the
Code:
export PERL_MM_OPT="INSTALL_BASE=/home/rafael/.perl"
entry. (rafael is my username, for instance.)

The problem is that I change to super user environment with
Code:
su
only and as a consequence, I inherit all my current user environment variables, including the PERL_MM_OPT.

Solution:

Change to super user with
Code:
su -
instead of only
Code:
su
.
Back to top
View user's profile Send private message
cengique
n00b
n00b


Joined: 17 Mar 2012
Posts: 13
Location: United States

PostPosted: Sun Sep 08, 2013 4:28 pm    Post subject: Reply with quote

Thanks so much for posting this solution! Here I am three years later with the same problem and this solution worked. :)
Back to top
View user's profile Send private message
wrtlprnft
n00b
n00b


Joined: 08 Jun 2005
Posts: 21

PostPosted: Fri Mar 21, 2014 8:06 am    Post subject: Reply with quote

Thanks as well!

This is the second time I've been here, I apparently keep forgetting the solution.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Sun Aug 10, 2014 5:00 am    Post subject: Reply with quote

I have hit this same issue. And I know its not the first time. Hopefully I will remember this post the next time..
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum