Skip to content

Instantly share code, notes, and snippets.

@gitsrc
Forked from egorsmkv/build-git.md
Created January 29, 2021 09:15
Show Gist options
  • Select an option

  • Save gitsrc/0c78c3e2cd66678b836099bea5137b1f to your computer and use it in GitHub Desktop.

Select an option

Save gitsrc/0c78c3e2cd66678b836099bea5137b1f to your computer and use it in GitHub Desktop.

Revisions

  1. @egorsmkv egorsmkv revised this gist Jul 13, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions build-git.md
    Original file line number Diff line number Diff line change
    @@ -14,14 +14,14 @@ cd git-2.18.0/

    ```
    yum groupinstall 'Development Tools'
    yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
    yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel
    ```

    ## 3) Configure

    ```
    make configure
    ./configure --prefix=/usr
    ./configure --prefix=/usr/local
    ```

    ## 4) Compile
  2. @egorsmkv egorsmkv revised this gist Jul 13, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions build-git.md
    Original file line number Diff line number Diff line change
    @@ -20,14 +20,14 @@ yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-E
    ## 3) Configure

    ```
    autoconf
    ./configure
    make configure
    ./configure --prefix=/usr
    ```

    ## 4) Compile

    ```
    make
    make all
    ```

    ## 5) Install
  3. @egorsmkv egorsmkv created this gist Jul 13, 2018.
    37 changes: 37 additions & 0 deletions build-git.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    # Build git from source code

    ## 1) Go to https://git-scm.com/ and check out the latest version of Git

    Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

    ```
    wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
    tar xf git-2.18.0.tar.gz
    cd git-2.18.0/
    ```

    ## 2) Install the dependencies

    ```
    yum groupinstall 'Development Tools'
    yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
    ```

    ## 3) Configure

    ```
    autoconf
    ./configure
    ```

    ## 4) Compile

    ```
    make
    ```

    ## 5) Install

    ```
    make install
    ```