Question

Install git on ubunt - make: *** No rule to make target `all'. Stop.

  • Posted February 25, 2015

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?!

Subscribe
Share

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.