To install SparsePainter, please follow the below steps.

git clone git@github.com:YaolingYang/SparsePainter.git
cd SparsePainter
make

Note that SparsePainter requires g++ >=6 and depends on
Armadillo-v12.6.5 to compute AAS;
gzstream-v1.5 to read and write gzipped files.

To update the newer version of SparsePainter, you can remove lines 10-12 of Makefile, since armadillo has already been installed during your initial installation.