background
Compiling the EMQX plug-in depends on the version of git, and needs to use a version above 1.8.5, but the version in my system (centos7) is 1.8.3, which does not meet the version requirements, as shown below
Installation process
1. Uninstall the old version
yum -y remove git
2. Installation dependencies
sudo yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc gcc perl-ExtUtils-MakeMaker
3. Select version
Git source package address: https://mirrors.edge.kernel.org/pub/software/scm/git/
We choose an installation package ending in tar.gz, for example: git-2.23.0.tar.gz
4. Download & unzip the git source code package
cd /opt && wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.23.0.tar.gz && tar -xzvf git-2.23.0.tar.gz
5. Compile & Install
cd git-2.23.0/ && make prefix=/usr/local/git all && make prefix=/usr/local/git install
6. Configure environment variables
echo "export PATH=$PATH:/usr/local/git/bin" >> .~/.bashrc
7. Load environment variables
source ~/.bashrc
8. Verify git version
Execute: git --version , as shown below:
Blogger: Test to make money
Motto: Focus on testing and automation, and strive to improve the efficiency of research and development; through testing and diligence to complete the original accumulation, through reading and financial management to financial freedom.
csdn:https://blog.csdn.net/ccgshigao
Blog Park: https://www.cnblogs.com/qa-freeroad/