1. Installation and Configuration

1.1. Installing Version5 from Source

1.1.1. Prerequisites

Required

  • A Fortran compiler such as gfortran

  • A C/C++ compiler such as gcc

    If you are using a Debian-based distribution, you can install the g++ compiler using the following command:

    sudo apt install g++
    
  • CMake cross-platform build system

    The compiling and linking of source files is handled by CMake in a platform-independent manner. If you are using Debian or a Debian derivative such as Ubuntu, you can install CMake using the following command:

    sudo apt install cmake
    

1.1.2. Obtaining the Source

All Version5 source code is hosted on Merlin page. You can download the source code directly from Merlin page or, you can use wget to obtain the source code, run the following command:

wget http://www.polymtl.ca/merlin/downloads/version5_v5.0.6.tgz

.. _compile_linux:

1.1.3. Compiling Version5 on Linux and Mac OS X

To compile Version5 on Linux or Max OS X, run the following commands from within the root directory of the source code:

tar xvfz version5_v5.0.6.tgz.tgz
cd Version5_beta_ev1803
cd Utilib && ../script/install
cd ../Ganlib && ../script/install
cd ../Trivac && ../script/install
cd ../Dragon && ../script/install
cd ../Donjon && ../script/install

This will build an executable file and install it in a default directory (for example, /Version5_beta_ev1803/Dragon/bin/Linux_x86_64 is the default directory for Dragon).