Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4175

Unset INSTALL_BASE when installing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2.0
    • Build, Management API
    • None

    Description

      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:

      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
      

      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.

      Attachments

        Activity

          People

            jamespeach James Peach
            jamespeach James Peach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: