I followed this link to install git Install git on ubntu and I got stuck at this part:
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
I keep getting this error: make: *** No rule to make target `all’. Stop.
What’s the cause of this issue?!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
make: *** No rule to make target `all'. Stop.
Generally an error like that would suggest that you are not in the correct directory. Is there a file named Makefile
in your current directory?
Though as @gp+digitalocean suggests, simply running sudo apt-get install git
will install git for you without having to build it from source.
Click below to sign up and get $100 of credit to try our products over 60 days!
Why are you compiling and installing git yourself instead of using the version from your package manager?
Just do
apt-get install git
and you’re done.