Skip to content

Commit

Permalink
Update README on installing from source on older distros (#677)
Browse files Browse the repository at this point in the history
Address #672 

This updates the docs to move forward the "older" version of Ubuntu to
20.04.

Reading the `INSTALL` file from the git source does cover dependencies
in detail but it doesn't call out the actual libs for those on a
specific distro.

I've added a shortlist of `apt` libraries that are likely needed to
build Git from source on Ubuntu 20.04, sourced originally from
https://www.digitalocean.com/community/tutorials/how-to-install-git-from-source-on-ubuntu-20-04-quickstart.
  • Loading branch information
dscho authored Jul 16, 2024
2 parents bff505b + 74a9541 commit 8f13388
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ To upgrade, you will need to repeat these steps to reinstall.

*Older distributions are missing some required dependencies. Even
though the package may appear to install successfully, `microsoft/
git` will not function as expected. If you are running Ubuntu 18.04 or
git` will not function as expected. If you are running `Ubuntu 20.04` or
older, please follow the install from source instructions below
instead of installing the debian package.

### Other distributions
### Installing From Source

You will need to compile and install `microsoft/git` from source:
On older or other distros you will need to compile and install `microsoft/git` from source:

```shell
git clone https://github.com/microsoft/git microsoft-git
Expand All @@ -199,6 +199,14 @@ sudo make -j12 prefix=/usr/local install
For more assistance building Git from source, see
[the INSTALL file in the core Git project](https://github.com/git/git/blob/master/INSTALL).

#### Common Debian based dependencies
While the INSTALL file covers dependencies in detail, here is a shortlist of common required dependencies on older Debian/Ubuntu distros:

```shell
sudo apt-get update
sudo apt-get install libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake gcc
```

Contributing
=========================================================

Expand Down

0 comments on commit 8f13388

Please sign in to comment.