I'm trying to build Git 2.18 on Solaris 11.3 x86_64. $ gmake V=1 rm -f git-add--interactive git-add--interactive+ && \ sed -e '1{' \ -e ' s|#!.*perl|#!/usr/bin/perl|' \ -e ' rGIT-PERL-HEADER' \ -e ' G' \ -e '}' \ -e 's/@@GIT_VERSION@@/2.18.0/g' \ git-add--interactive.perl >git-add--interactive+ && \ chmod +x git-add--interactive+ && \ mv git-add--interactive+ git-add--interactive sed: command garbled: rGIT-PERL-HEADER gmake: *** [git-add--interactive] Error 2 And: $ perl --version This is perl 5, version 12, subversion 5 (v5.12.5) built for i86pc-solaris-64int (with 7 registered patches, see perl -V for more detail) Any ideas how to fix it? Thanks in advance.