smoyse has asked for the wisdom of the Perl Monks concerning the following question:

Hi
I am unable to work out how to stop Configure including old libraries in @INC.

After building perl I get:

./perl -e 'print join ":",@INC' /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi:/usr/lib/perl5/ +site_perl/5.8.3:/opt/perl/lib/5.8.8/i686-linux:/opt/perl/lib/5.8.8:/o +pt/perl/lib/site_perl/5.8.8/i686-linux:/opt/perl/lib/site_perl/5.8.8: +/opt/perl/lib/site_perl

I simply do not wish to have the 5.8.3 libraries in @INC.

The doco says that otherlibdirs=none by default.I tried overriding it any way, but to no avail.

Any help greatly appreciated.

20060717 Janitored by Corion: Added code tags, as per Writeup Formatting Tips

Replies are listed 'Best First'.
Re: Problem building Perl 5.8.8
by syphilis (Archbishop) on Jul 17, 2006 at 07:46 UTC
    I'm not sure how to override this at the "Configure" stage, but it's usually handled by the value(s) assigned to PERL_INC_VERSION_LIST in config.h. In that file, find the line "#define PERL_INC_VERSION_LIST". What follows it should contain "5.8.3/i386-linux-thread-multi" and "5.8.3" and you want to get those 2 entries removed from that list.

    So ... maybe just remove them from config.h before running 'make' .... though I'm not sure that config.h gets generated before 'make' is run.

    Or maybe you can achieve what you want by hard coding the PERL_INC_VERSION_LIST entry in config_h.SH appropriately before you run Configure. (Of course, someone may come up with the simple and correct way to achieve what you want ... so stay tuned :-)

    Cheers,
    Rob
      Thanks for the help Rob.

      I figured it out any way - I'm a total knob.
      I had PERL5LIB set, unset it and magically it works!

      I didn't check PERL5LIB because I know I didn't set it my self. In fact I still can't find where it is being set. I have checked the usual suspects:
      .bash_profile
      .bashrc
      /etc/bashrc
      /etc/*
      But I guess that's a question for a different user group.

      Just goes to show that the bad guy from Under Seige 2 was right.
      "Assumption is the mother of all fuckups."

      Thanks again
      Steven

        Would u know of a tutorial of how to build perl 5.8.8 using threads. I've never built perl before. Looking for the basics.