By ishita650
on my ubuntu wsl to build Git and install it under /usr, run make i entered command- make all doc info prefix=/usr but it gives error make: *** No rule to make target ‘all’. Stop. i don’t know how to resolve this
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @ishita650,
It seems like you want to install git from source. You can use the apt package management tools to update your local package index. Afterwards, you can download and install the program:
sudo apt-get update
sudo apt-get install git
This will download and install git to your system.
If you want to build it from source, then it will be a little bit harder. First run:
sudo apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
After you have installed the necessary dependencies, you can go ahead and get the version of git you want by visiting:
Click on Branch:master–> Tags and select the version you need. To download the version
wget https://github.com/git/git/archive/v2.8.1.zip -O git.zip
Unzip the file that you downloaded and move into the resulting directory by typing:
unzip git.zip
cd git-*
Now, you can make the package and install it by typing these two commands:
make prefix=/usr/local all
sudo make prefix=/usr/local install
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.