`
yuanqixun
  • 浏览: 58042 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

在CentOS下安装配置git

 
阅读更多
<ul>
<li>安装相关依赖</li>
</ul>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;">&lt;!--&lt;br /&gt;
&lt;br /&gt;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;
http://www.CodeHighlighter.com/&lt;br /&gt;
&lt;br /&gt;
--&gt;yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel<span style="color: #000000;">
</span>
</div>
</blockquote>
<ul>
<li>获得git源码</li>
</ul>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%;">&lt;!--&lt;br /&gt;
&lt;br /&gt;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;
http://www.CodeHighlighter.com/&lt;br /&gt;
&lt;br /&gt;
--&gt;<span style="color: #000000;"># wget http:</span><span style="color: #008000;">//</span><span style="color: #008000;">kernel.org/pub/software/scm/git/git-1.7.5.tar.gz</span>
</div>
</blockquote>
<ul>
<li>
    解压后编译安装</li>
</ul>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%;">&lt;!--&lt;br /&gt;
&lt;br /&gt;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;
http://www.CodeHighlighter.com/&lt;br /&gt;
&lt;br /&gt;
--&gt;<span style="color: #000000;"># tar xvfz git</span><span style="color: #000000;">-</span><span style="color: #000000;">1.7</span><span style="color: #000000;">.</span><span style="color: #000000;">5</span><span style="color: #000000;">.tar.gz<br>
# cd git</span><span style="color: #000000;">-</span><span style="color: #000000;">1.7</span><span style="color: #000000;">.</span><span style="color: #000000;">5</span><span style="color: #000000;"><br>
# make prefix</span><span style="color: #000000;">=/</span><span style="color: #000000;">usr</span><span style="color: #000000;">/</span><span style="color: #000000;">local all<br>
# make prefix</span><span style="color: #000000;">=/</span><span style="color: #000000;">usr</span><span style="color: #000000;">/</span><span style="color: #000000;">local install</span>
</div>
</blockquote>
<ul>
<li>
    安装后结果</li>
</ul>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%;">&lt;!--&lt;br /&gt;
&lt;br /&gt;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;
http://www.CodeHighlighter.com/&lt;br /&gt;
&lt;br /&gt;
--&gt;<span style="color: #000000;">[root@dev git</span><span style="color: #000000;">-</span><span style="color: #000000;">1.7</span><span style="color: #000000;">.</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><span style="color: #008000;">#</span><span style="color: #008000;"> whereis git</span><span style="color: #008000;"><br></span><span style="color: #000000;">git: </span><span style="color: #000000;">/</span><span style="color: #000000;">usr</span><span style="color: #000000;">/</span><span style="color: #000000;">local</span><span style="color: #000000;">/</span><span style="color: #000000;">bin</span><span style="color: #000000;">/</span><span style="color: #000000;">git<br>
[root@dev git</span><span style="color: #000000;">-</span><span style="color: #000000;">1.7</span><span style="color: #000000;">.</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><span style="color: #008000;">#</span><span style="color: #008000;"> git --version</span><span style="color: #008000;"><br></span><span style="color: #000000;">git version </span><span style="color: #000000;">1.7</span><span style="color: #000000;">.</span><span style="color: #000000;">5</span>
</div>
</blockquote>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics