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

I want to build perl from source in a private location and make sure that it doesn't refer at all to any other existing perl installations. If I just do
./Configure -de -Dprefix=/my/private/place
Configure "helpfully" looks for an existing perl, i.e. /usr/bin/perl, and puts its library directories in @INC in my private build. No doubt this is usually the right thing to do. However, I want to build a hermetically sealed perl, as if there were no other perl installation available. What's the right thing to do?

Replies are listed 'Best First'.
Re: Configure self-contained perl from source
by dave_the_m (Monsignor) on May 21, 2005 at 09:57 UTC
    Configure "helpfully" looks for an existing perl, i.e. /usr/bin/perl, and puts its library directories in @INC in my private build
    Er, no it doesn't. You've most likely got the PERL5LIB env var set.

    Dave.

      Right! But why? and how? and where? I'm running Fedora Core 3.
        Probably /etc/profile.d/atrpms.sh and atrpms.csh. These are pointless and should be removed.

        Dave.

Re: Configure self-contained perl from source
by BUU (Prior) on May 21, 2005 at 09:16 UTC
    chroot?
Re: Configure self-contained perl from source
by bluto (Curate) on May 23, 2005 at 16:39 UTC
    I have ...

    -Dinc_version_list=none

    ... as part of my command line to Configure. I don't have access to Configure's documentation at the moment, so I can't verify this is correct though.