Re: difftool uses hardcoded perl shebang
- From
Jeff King <peff@peff.net>
- Date
- Dec 19, 2017, 16:25 UTC
- Message-ID
- <20171219162528.GA5804@sigill.intra.peff.net>
- In-Reply-To
- <f5d4c8e7bceb410a95a34a8cce4c31dd@deutsche-boerse.com>
On Tue, Dec 19, 2017 at 01:28:09PM +0000, Jakub Zaverka wrote:
Show 12 quoted lines
> When running git difftool: > > >git difftool > Perl lib version (5.10.0) doesn't match executable version (v5.16.3) > Compilation failed in require at <path>/git-difftool line 2. > > First line in my git-difftool is: > #!/usr/bin/perl > > I am using a specific perl that I cannot change. Similarly, I cannot change the git-difftool file. I would like the difftool to use the perl form my PATH. > > Maybe it would be better to use #!/usr/bin/env perl?
This is a build-time knob. When you build git, try:
make PERL_PATH='/usr/bin/env perl'
(If you don't build your own git, then you might raise the issue with whomever packages your binary).
As an aside, git-difftool is now a C builtin these days, so the problem might also go away if you upgrade. ;)
-Peff