Can't locate Git.pm in @INC

前端 未结 6 1103
暖寄归人
暖寄归人 2021-01-17 10:16

When I run git add -p, I see:

Can\'t locate Git.pm in @INC (@INC contains:
/usr/local/lib/perl5/site_perl
/Library/Perl/5.12/darwin-thread-multi-2lev         


        
6条回答
  •  自闭症患者
    2021-01-17 10:23

    Git.pm is usually shipped as part of your Git installation, not as part of Perl.

    As a result, it will be located somewhere relative to the git program. Try looking in a lib directory nearby whatever the output of which git is. For example, if which git returns /opt/local/bin/git the try looking under the directory /opt/local/lib, etc.

提交回复
热议问题