On Tue, Dec 19, 2017 at 01:28:09PM +0000, Jakub Zaverka wrote: > 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