cbrc
MAFFT version 7

Multiple alignment program for amino acid or nucleotide sequences

How to install MAFFT to a non-default location

By default, MAFFT is installed to /usr/local/.  To change the installation location, modify Makefile as follows.

Also use this procedure when you do not have the root (administrator) account of the Linux (or UNIX) system.

  1. Download the source package (mafft-x.xxxxxxxx-src.tgz).
  2. Untar the source package.
    % tar xfvz mafft-x.xxx-with-extensions-src.tgz
    mafft-x.xxx-with-extensions/
    mafft-x.xxx-with-extensions/binaries/
    mafft-x.xxx-with-extensions/test/
    mafft-x.xxx-with-extensions/test/sample.dpparttree
    ...
    
  3. Edit the first line of Makefile in the 'core' directory as follows.
    % cd mafft-x.xxx-with-extensions/core/
    % vi Makefile (any other text editor is ok.)
    From:
    PREFIX = /usr/local
    To:
    PREFIX = /home/your_home/somewhere (must be absolute path)
    
  4. Also edit the third line of Makefile. Corrected on Mar. 12, 2010
    From:
    BINDIR = $(PREFIX)/bin
    To:
    BINDIR = /home/your_home/bin (or elsewhere in your command-search path)
    
  5. (optional) To enable DASH, uncomment the following line in Makefile:
    DASH_CLIENT = dash_client
    
  6. Compile and install.
    % make clean
    % make
    % make install
    
If you have downloaded the '-with-extension' package, make a modification to the 'extensions' directory.

If you had set the MAFFT_BINARIES variable at the previous installation, unset the variable.