1.centos安装git时出错提示make[1]: [perl.mak] Error 2 make: [perl/perl.mak] Error 2
遇到问题
centos安装git的时候出现下面的错误提示:
usr/bin/perl Makefile.PL PREFIX='/usr/local/git' '' --localedir='/usr/local/git/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
解决问题
yum install perl-ExtUtils-MakeMaker
2.git 执行git pull –rebase报错误
遇到问题
git 执行git pull –rebase报错误如下:
error: Cannot pull with rebase: You have unstaged changes.
error: Additionally, your index contains uncommitted changes.
解决问题
解决:
先执行 git stash
再执行 git pull --rebase origin master
最后再执行 git push -u origin master