Download and Install RevBayes


Source code

GitHub Repository


Compiling from source


Linux

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 some compiler warning (e.g. clang: warning: optimization flag '-finline-functions' is not supported). This is normal.


Troubleshooting