[
https://issues.apache.org/jira/browse/TS-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158284#comment-15158284
]
James Peach commented on TS-4175:
---------------------------------
[~zwoop] does this work for you?
{code}
jpeach$ git diff
diff --git a/lib/perl/Makefile.am b/lib/perl/Makefile.am
index bfba2af..c3447fe 100644
--- a/lib/perl/Makefile.am
+++ b/lib/perl/Makefile.am
@@ -26,7 +26,7 @@ install-exec-local: Makefile-pl
# copy them to the build directory if we are building out of tree.
Makefile-pl: Makefile.PL
test -f "$(top_builddir)/$(subdir)/Makefile.PL" || cp -rf "$(srcdir)/."
"$(top_builddir)/$(subdir)/"
- $(PERL) Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+ $(PERL) Makefile.PL INSTALLDIRS=$(INSTALLDIRS) INSTALL_BASE=$(prefix)
PREFIX=
distclean-local:
-rm -rf Makefile-pl MYMETA.* blip
{code}
> 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)