centos 升級git到進階版本

來源:互聯網
上載者:User

標籤:centos git 升級 msgfmt asciidoc xmlto 錯誤 解決

       為了使用github,安裝了git,版本為1.7.1,對於追新的我,覺得這個版本有些老了。因為git版本都到2.2了。所以我決定升級到最新版本,為了你能不走彎路,請注意看三、四段。

一、先卸載舊版本的git。

#yum remove -y git

二、安裝新版本的git

1、#wget 2、#tar xf v2.2.1.tar.gz3、#cd git-2.2.14、# make configure5、# ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv6、# make all doc7、# make install install-doc install-html8、# echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc># source /etc/bashrc

三、安裝中的錯誤

1、error:   MSGFMT po/de.msg make[1]: *** [po/de.msg] Error 127

解決:yum install tk zlib-devel openssl-devel perl cpio expat-devel gettext-devel

2、errro:  asciidoc: command not found
解決:yum install -y asciidoc

3、errro:xmlto: command not found

解決:yum install -y xmlto

四、檢測

安裝完成後,因為不在系統路徑,所以要執行二、8寫路徑的操作。

#git --version

#git version 2.2.1
最後提醒,升級安裝git的時候,最好一次安裝依賴。

yum install -y tk zlib-devel openssl-devel perl cpio expat-devel gettext-devel asciidoc xmlto

本文出自 “酷位元Linux” 部落格,請務必保留此出處http://coolbyte.blog.51cto.com/8289854/1694106

centos 升級git到進階版本

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.