Skip to content

Download and Install

Diego Darriba edited this page Mar 24, 2021 · 3 revisions

The easy way is to download the ModelTest-NG binary from the releases page. For each release you will find the source package and static compiled binaries for different operating systems.

Alternatively, if there are no binaries for your system or you prefer compiling your own binaries, I suggest you download the sources tarball. That distribution comes with a configure script. Note that before compiling ModelTest-NG you need to install the phylogenetic likelihood library modules, that are also included.

Compiling the sources

Download the latest sources tarball from the releases page. Open a command console, and type extract ModelTest files and move to the new directory::

$ tar zvxf modeltest-ng-x.y.z.tar.gz # where x.y.z is the current version
$ cd modeltest-ng-x.y.z

Now you can either use the included script, or compile the sources yourself.

Compiling automatically (Linux and OS X)

There are 2 ways of building ModelTest-NG:

  • Using cmake
  • Using autotools

Both should work, so choose the one is more comfortable for you. If you experience any problem, please try the other one as well.

a) Build ModelTest-NG using cmake:

PTHREADS version:

cd modeltest-ng
mkdir build && cd build
cmake ..
make

MPI version:

cd modeltest-ng
mkdir build && cd build
cmake -DENABLE_MPI=ON ..
make

GUI version:

Try running qmake, and if you observe and error, install qt5-default from apt repositories:

$ sudo apt-get install qt5-default

Then run:

cd modeltest-ng
mkdir build && cd build
cmake -DENABLE_GUI=ON ..
make

Run 'modeltest-gui' without arguments for loading the GUI

ModelTest-NG binaries will be placed in modeltest-ng/bin directory.

Important: If cmake fails because of missing files, please try cloning the repository recursively:

git clone --recursive https://github.com/ddarriba/modeltest

To compile a Windows executable, install MinGW and run:

$ ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes mingw64-configure $ make

Clone this wiki locally