The pre-compiled packages (for Macintosh, for Windows) are much easier to install than this, unless you need MPI.
Latest version
% gunzip -cd mafft-x.x-src.tgz | tar xfv - % cd mafft-x.x/core/
% make clean % make % su # make install
Make sure that mpicc and mpirun, from the same library, work.
% cd mafft-x.x/MPI/
% make clean
% make
% su
# make install
Ask administrator of your PC cluster where mpicc is.
% cd mafft-x.x/extensions/ % make clean % make % su # make installThe extensions part had a compatibility problem with gcc 6.1.1. This problem was fixed in version 7.301 (2016/Aug).
See here.
See here.