In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "how to install git2.11 version on centos". Xiaobian shows you the operation process through actual cases. The operation method is simple and fast and practical. I hope this article "how to install git2.11 version on centos" can help you solve the problem.
1. Download the compilation tool
yumgroupinstall"DevelopmentTools"
2. Download dependency packages
yuminstallzlib-develperl-ExtUtils-MakeMakerasciidocxmltoopenssl-devel
Download the latest version of Git source code
wgethttp://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
or
wgettp://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xz (I used this successfully)
4. Extract the source file
tar-zxvfgit-latest.tar.gz
or
xz-dgit-latest.tar.xz
tar-xvfgit-latest.tar (I succeeded with this)
5. Compilation and installation
autoconf
./ configure
make-jn&&make-jninstall (I use make && successfully)
where n in make-jn is the specified number of threads, which speeds up compilation and installation for multicore processors
6. Add link
ln-s/usr/local/bin/git/usr/bin/
This step is very important for systems that have an old version of git in the original system, and will report that Link already exists. In this case, delete the original Link, that is,/usr/bin/git, and then perform step 6.
7. Check the version number
git--version
For systems with older versions of git, git--version still shows older versions after installing new git because i ignored step 6, which is important!
This is where the "how to install git 2.11 on centos" section ends. Thanks for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.