You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/03/02 06:47:18 UTC

[jira] [Commented] (TS-4175) unset INSTALL_BASE when installing

    [ https://issues.apache.org/jira/browse/TS-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175086#comment-15175086 ] 

ASF subversion and git services commented on TS-4175:
-----------------------------------------------------

Commit a7316975194505add54a8467e595995a394fed26 in trafficserver's branch refs/heads/master from [~jpeach@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=a731697 ]

TS-4175: unset INSTALL_BASE when installing Perl

If you have CPAN set up, it will inject environment variables that
break the perl module installation, specifically
PERL_MM_OPT=INSTALL_BASE=/path/to/cpan.

According to http://perldoc.perl.org/ExtUtils/MakeMaker.html,
INSTALL_BASE should be preferred over PREFIX.


> unset INSTALL_BASE when installing
> ----------------------------------
>
>                 Key: TS-4175
>                 URL: https://issues.apache.org/jira/browse/TS-4175
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build, Management API
>            Reporter: James Peach
>            Assignee: James Peach
>             Fix For: 6.2.0
>
>
> If you have CPAN set up, it will inject environment variables that break the perl module installation, specifically {{PERL_MM_OPT=INSTALL_BASE=/home/jpeach/perl5}}.
> The resulting error is:
> {code}
> Making all in perl
> make[3]: Entering directory '/tmp/org.apache.trafficserver.3277/obj/lib/perl'
> test -f "../../lib/perl/Makefile.PL" || cp -rf "/home/jpeach/tmp/trafficserver-6.1.1/lib/perl/." "../../lib/perl/"
> /usr/bin/perl Makefile.PL INSTALLDIRS= PREFIX=/tmp/org.apache.trafficserver.3277/dst
> Only one of PREFIX or INSTALL_BASE can be given.  Not both.
> Makefile:712: recipe for target 'Makefile-pl' failed
> make[3]: *** [Makefile-pl] Error 25
> make[3]: Leaving directory '/tmp/org.apache.trafficserver.3277/obj/lib/perl'
> Makefile:638: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/tmp/org.apache.trafficserver.3277/obj/lib'
> Makefile:577: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '/tmp/org.apache.trafficserver.3277/obj/lib'
> Makefile:674: recipe for target 'all-recursive' failed
> {code}
> We ought to clear at least some of the perl environment variables when installing so  that it doesn't fail in weird ways like this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)