On Ubuntu 20, here’s what I do:
This is for the suprnova pool, you can change the address below if you want another pool / no pool.
git clone https://github.com/WyvernTKC/cpuminer-gr-avx2
sudo apt-get update
sudo apt-get install -y libgmp3-dev automake zlib1g-dev libcurl4-openssl-dev libnuma-dev libssl-dev
cd cpuminer-gr-avx2
./autogen.sh
CFLAGS=”-O3 -march=native -Wall -lnuma” ./configure –with-curl
make -j4
sudo ./cpuminer -a gr -o stratum+tcp://stratum.us-la1.suprnova.cc:6273 -u [your-worker-id] -p [yourpass]