[Pdx-pm] maintaining your own perl tree
allison at perl.org
Wed Aug 27 01:18:43 PDT 2008
> On Tuesday 26 August 2008 10:41:00 Eric Wilhelm wrote:
>> I know you're "not supposed to" replace the vendor's perl, but I have to
>> wonder whether rebuilding their SRPM with the actual 5.8.8 source code
>> would really break anything. Would you need to rebuild the binary
> The answer depends on the differences between the two Perl binaries.
Honestly, there's no benefit to replacing the vendor's perl, and huge risk.
If you compile your perl in some custom location (/usr/local or
/opt/perl), and make sure it knows to respond to '#!/usr/bin/perl' on
the shebang line (it's a configuration option when compiling perl, the
shebang line doesn't have to match the path), then all you have to do is
change your PATH environment variable so /usr/local/bin (or
/opt/perl/5.8.8/bin) comes before /usr/bin, and you'll always get your
compiled perl instead of the vendor's perl, while the rest of the system
will get the vendor's perl.
More information about the Pdx-pm-list