MAFFT version 6

Multiple alignment program for amino acid or nucleotide sequences

The pre-compiled packages (for Macintosh, for Windows) are much easier to install than this!

Source

Download

Installation (as root)

% gunzip -cd mafft-x.x-src.tgz | tar xfv -
% cd mafft-x.x/core/
% make clean
% make
% su
# make install 
Programs are installed into /usr/local/bin/ and /usr/local/lib/mafft/ by default.  If you want to install them into different directories, see here.

To enable RNA structural alignment (X-INS-i and Q-INS-i),

% cd mafft-x.x/extensions/
% make clean
% make
% su
# make install 

Installation (as a non-root user)

See here.