[LINUX] Compile and install Git from source.

Compile and install Git from source in your directory. Approximately as described in https://github.com/git/git/blob/master/INSTALL. In my environment, there was an error around expat and compiling doc, so I installed it in an alternative way.


#Source download
$ curl -LO https://github.com/git/git/archive/v2.26.0.tar.gz

#Expand and move to the deployment destination
$ tar -xvf v2.26.0.tar.gz
$ cd git-2.26.0/

#Create a configure file and configure. The installation destination is the extracted directory
$ make configure
$ ./configure --prefix=$(pwd)

#make and install
$ make all
$ make install

#Check the version of installed git.
$ bin/git --version
git version 2.26.0

reference: https://qiita.com/347lionz/items/a18c5b11df45a7c2e67d

Recommended Posts

Compile and install Git from source.
Install python from source
Install Apache 2.4.41 from source
Install ansible from source code
Install Apache Maven (from source)
Try installing Git from source using Ansible's make and unarchive modules
Install PostgreSQL from source code on CentOS
Install from conda-forge
Install docker mongodb image and connect from spring-boot
Install vim7.3 (+ python2.4) from source (compatible with Gundo.vim)
Build PostgreSQL from source
How to install Git GUI and Gitk on CentOS
Install and configure KVM
Install and develop Git, VSCode, Docker on Chrome OS
Compile and install MySQL-python for python2.7 on amazon linux
Modify and install ReadyMedia sources
Install Python and Flask (Windows 10)
Install Python 3.7 and Django 3.0 (CentOS)
Install pyenv from Homebrew, install Python from pyenv
Source installation and installation of Python
Install mecab on Sakura shared server and call it from python
[EC2] How to install and download chromedriver from the command line