In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "Linux how to install Git", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Linux how to install Git" bar!
Yum installation
Yum install git, but the post-installation version is too low.
Git uninstall
Yum remove git, uninstall the installed version of git.
Download the installation package
Wget https://github.com/git/git/archive/v2.23.0.tar.gz
Extract the installation package
Tar-zxvf v2.23.0.tar.gz
Installation dependency
Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2x autoconf
Yum install gcc perl-ExtUtils-MakeMaker
Configure the installation path
Enter the installation path, mine is / usr/local/git
Make configure
. / configure prefix=/usr/local/git/
Compilation and installation
Make all doc info sudo make install install-doc install-html install-info
Setting up Profil
Vim / etc/profile
GIT_HOME=/user/local/gitPATH=$PATH:$GIT_HOME/binexport PATH refresh profile
Source prifile
View git version
Git-version
FAQ
Yum install install autoconf automake libtool
Zlib.h: No such file or directory
Yum install zlib-devel
Make all doc info reported an error, lack of dependence on yum install perl-ExtUtils-MakeMaker tcl gettext-devel asciidoc xmlto
/ bin/sh: line 1: docbook2x-texi: command not found
Make [1]: * * [user-manual.texi] Error 127
Make [1]: Leaving directory `/ opt/git-2.9.5/Documentation'`
Make: * * [info] Error 2
Sodu ln-s / usr/bin/db2x_docbook2texi / usr/bin/docbook2x-texi
Thank you for reading, the above is the content of "how to install Git in Linux". After the study of this article, I believe you have a deeper understanding of how to install Git in Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.