天天看点

linux安装git

一般linux自带git版本很旧,会有一定问题,可以先卸载系统自带git:

<code>yum remove git</code>

下载及安装git:

yum install zlib-devel<code>`</code>

解决

2.提示<code>make cc command not found</code>

<code>yum install gcc</code>

3.<code>make[1]: * [perl.mak] error 2 make: * [perl/perl.mak] error 2</code>

执行:

<code>yum install perl-extutils-makemaker package.</code>

进行安装

出现错误二:

<code>/bin/sh: msgfmt: command not found</code>

<code>yum install gettext-devel</code>

可解决!

4.<code>/bin/sh: line 1: asciidoc: command not found</code>

安装asciidoc:

到官网下载asciidoc

<a href="http://www.methods.co.nz/asciidoc/index.html">http://www.methods.co.nz/asciidoc/index.html</a>

<a href="http://sourceforge.net/projects/asciidoc/">http://sourceforge.net/projects/asciidoc/</a>