this is guide for vivo but works for many coins. I have compiled many coins on ubuntu 16 using those steps
#### SYSTEM PREPARATION ####
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get install nano htop git -y
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils software-properties-common -y
sudo apt-get install libboost-all-dev -y
sudo apt-get install libzmq3-dev libminiupnpc-dev libssl-dev libevent-dev -y #OPTIONAL (for example VIVO needs this)
Berkley 4.8:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
#### CLONE #####
This example uses VIVO, if you are going to compile a different coin just use there git URL. Keep in mind that this will result in a different folder name.
cd
sudo git clone
https://github.com/vivocoin/vivo # depends on your coin
cd vivo # depends on your coin
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install # optional
cd src
sudo strip vivod # optional
sudo strip vivo-cli # optional
sudo strip vivo-tx # optional
Compiling depends on your system but usually takes around 20-30 minutes.