|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- git --version
参考网址:http://www.bitscn.com/os/linux/201410/337776.html
安装git出现的错误
Git在make的时候报错:Can't locate ExtUtils/MakeMaker.pm in @INC
解决方法如下:
yum -y install perl-devel perl-CPAN
git 需要perl来编译。然后重新make
Git Make时出现:tclsh failed; using unoptimized loading
MSGFMT po/bg.msg make[1]: *** [po/bg.msg] 错误 127
yum install tcl build-essential tk gettext
安装之后使用https操作git 出现 :fatal: Unable to find remote helper for 'https'
yum install -y curl curl-devel
然后重新安装 git
安装之后 git --version 仍然是旧版本(1.7.12)
git 安装时不使用--prefix指定安装目录,默认安装到/usr/local/bin/git ,需要把/usr/local/bin/git 复制或者ln到 /usr/bin/git
参考网址: http://my.oschina.net/u/132508/blog/288135
Git是分布式的版本控制系统,使用不需要联机,创建分支与合并分支容易,推送速度快。
CentOS6.4下git安装配置,使用yum install git安装,发现自动安装的结果是版本1.7.1
一 安装问题
[root@localhost SelfGoodCode]# git --version
git version 1.7.1
下载git-1.8.0.tar.gz,解压,确认./configure prefix=/usr/local/bin/git
make时候碰见错误
a、usr/local/git/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
解决:yum install perl-ExtUtils-MakeMaker
b、tclsh failed; using unoptimized loading
MSGFMT po/de.msg make[1]: *** [po/de.msg] Error 127
解决:yum install tcl
c、/bin/sh: msgfmt: command not found
make: *** [po/build/locale/da/LC_MESSAGES/git.mo] Error 127
解决:yum install gettext-devel
d、git clone时候提示fatal: Unable to find remote helper for 'https'
解决:yum install libcurl-devel 安装完成后,版本确认。
[root@localhost SelfGoodCode]# git --version
git version 1.8.0
src:http://www.lifeba.org/arch/git_gitosis.html
参考网址: http://blog.163.com/hehaifeng1984@126/blog/static/69001136201483101011798/
http://www.tuicool.com/articles/eYZFFn