centos6.5安裝git
軟體包連結:https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.7.2.tar.gz
官網連結:https://git.kernel.org/pub/scm/git/git.git/refs/tags
wget下載https開頭的網址域名 時報錯,你可能需要加上 --no-check-certificate 選項
例如:wget --no-check-certificate https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.7.2.tar.gz
1、安裝編譯git時需要的包
# yum -y install gcc openssl openssl-devel curl curl-devel unzip perl perl-devel expat expat-devel zlib zlib-devel asciidoc xmlto gettext-devel openssh-clients
2、新建資料夾 mkdir
# cd /usr/local
# mkdir git
3、下載解壓tar包
#wget --no-check-certificate https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.7.2.tar.gz
# tar xzf git-2.7.2.tar.gz
4、編譯安裝
# make prefix=/usr/local/git all doc
# make prefix=/usr/local/git install
5、 配置環境變數
# vim /etc/profile
底部追加 export PATH=/usr/local/git/bin:$PATH
# source /etc/profile 使更新生效
6、安裝成功
git --version
顯示版本號“git version 2.7.2”
相關文章
- CentOS6.5安裝pipCentOS
- CentOS6.5 安裝opensslCentOS
- CentOS6.5安裝ScrapyCentOS
- CentOS6.5安裝python3.7CentOSPython
- CentOS6.5安裝sqlite3CentOSSQLite
- centos6.5上安裝mysql 5.7.20CentOSMySql
- CentOS6.5安裝ElasticSearch6.2.3CentOSElasticsearch
- CentOS6.5安裝zookeeper-3.4.5(單機)CentOS
- Linux安裝rabbitmq簡單教程(Centos6.5)LinuxMQCentOS
- 安裝GitGit
- 02 安裝git、安裝TortoiseGitGit
- CentOS6.5安裝kafka-2.10-0.8.2(單機)CentOSKafka
- git 安裝 nvmGit
- Ubuntu安裝gitUbuntuGit
- Git安裝 for windowsGitWindows
- Git 安裝(window)Git
- Linux安裝gitLinuxGit
- CentOS安裝gitCentOSGit
- Mysql5.6 for Centos6.5原始碼編譯安裝MySqlCentOS原始碼編譯
- Linux下安裝GitLinuxGit
- Linux-git安裝LinuxGit
- 下載安裝gitGit
- Sourcetree(git GUI)安裝GitGUI
- Linux上安裝gitLinuxGit
- git安裝及配置教程 windows windows上git的安裝和使用GitWindows
- git(一):瞭解、學習、安裝gitGit
- CentOS6.5二進位制檔案安裝MySQL5.6.39CentOSMySql
- CentOS6.5安裝mysql以及常見問題的解決CentOSMySql
- git Windows版本安裝教程GitWindows
- linux 安裝git服務LinuxGit
- Git — 從安裝到操作Git
- 在CentOS上安裝GitCentOSGit
- Git的安裝及使用Git
- Win10系統怎樣安裝Git_win10安裝Git的方法Win10Git
- git安裝與初始化Git
- Eclips中安裝Git 外掛Git
- Git版本控制系統安裝Git
- 在Ubuntu desktop中安裝gitUbuntuGit
- Mac上Git安裝與配置MacGit