cd /path/to/sparsehash
tar xvf sparsehash-2.0.4.tar.gz cd sparsehash-sparsehash-2.0.4
./configure --prefix=/path/to/sparsehash make -j make install