cd /path/to/mopac
tar xvf v22.0.4.tar.gz
cd mopac-22.0.4
mkdir build cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/mopac make make install