Mac and Windows users can download one of the compiled executables below:

## Linux

Compile: see below.

## Compiling from source

Mac and Windows users do not need to compile RevBayes from source. However, compiling RevBayes is relatively simple process.

The standard way to build revbayes is to use cmake. If you want to compile using meson, see revbayes/projects/meson/README.md.

### Linux

First you need to install cmake:

sudo apt install cmake


Then obtain the source and compile:

git clone https://github.com/revbayes/revbayes.git revbayes
cd revbayes/projects/cmake
./build.sh


For the MPI version:

./build.sh -mpi true


### Mac OS X

1. Make sure that you have a C++ compiler installed on your computer. GCC 4.2 (or higher) and Apple LLVM version 6.0 have both been used successfully. If you don’t have a C++ compiler, you should install Xcode.

2. Make sure that you have CMake installed. One option to install CMake is using homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install cmake  3. Download RevBayes from our github repository. Clone the repository using git by running the following command in the terminal git clone https://github.com/revbayes/revbayes.git revbayes  4. Open a terminal and go to the RevBayes cmake directory: cd revbayes/projects/cmake  5. Now either build the standard version using the following: ./build.sh  or build the MPI version to produce the rb-mpi executeable: ./build.sh -mpi true  You will likely see some compiler warnings (e.g. clang: warning: optimization flag '-finline-functions' is not supported). This is normal. ### Troubleshooting • rb: command not found The problem is that you tried to run RevBayes but your computer doesn’t know where the executable is. The easiest way is to add the directory in which you compiled RevBayes to your system path: export PATH=<your_revbayes_directory>/projects/cmake:$PATH

• Error cmake not found!

Please double check that CMake is installed. For OS X, go to step 2 above.

• Error can't find the libboost_filesystem.dylib library or Library not loaded: libboost_filesystem.dylib

You need to add the boost libraries to your path variable. You may find that you have to export this DYLD_LIBRARY_PATH every time you open a new terminal window. To get around this, you can add this to your .bash_profile or .bashrc file (which lives in your home directory). To change this, open a new terminal window and you should be in the home directory. If you do not have either of these files, use the text editor nano to create this file type:

cd ~
touch .bash_profile
nano .bash_profile


Then add the following lines, replacing <your-revbayes-directory> with wherever you put the Revbayes Github repository:

export DYLD_LIBRARY_PATH=<your-revbayes-directory>/boost_1_60_0/stage/lib:$DYLD_LIBRARY_PATH export PATH=<your-revbayes-directory>/projects/cmake:$PATH


Then save the file using ctrl^o and hit return, then exit using ctrl^x. Now quit the Terminal app and reopen it and the boost libraries will forever be in your path.