You only need make and gcc. If you are using Ubuntu or Linux Mint you can try:
sudo apt update
sudo apt install make build-essential
make
sudo make install
You have to perform the last two commands in the directory where the file called Makefile
is.
why don't you show or tell what this error is? people cannot telepathically know what is going wrong there.