apt – make: *** No rule to make target ‘install’. when trying to build git from source


I am trying to install git on ubuntu 20 on my vmware work station

I am following this article tutorial

  1. installed the dependencies without any problems as well as clone a particular git as per the above article.
  2. When I try to build the git and install the it under /usr it starts giving out errors.

root@ubuntu:~# make all doc info prefix=/usr make: *** No rule to make
target ‘all’. Stop.

  1. I changed to directory to git and ran the command again

root@ubuntu:/home/sudlo/git# make all doc info prefix=/usr
CC fuzz-commit-graph.o /bin/sh: 1: cc: not found make: *** [Makefile:2379: fuzz-commit-graph.o] Error 127

4 i have read a lot of articles but I have not got any kind of solutions.

Kindly help me out