This page explains how to build from source:

This source can be retrieved in two forms:

Note that if you use the SVN version, you will need to install more tools (see below).

The first section of this page gives general instructions, which apply to all platforms. Then some specific platforms are discussed:

For Windows users, there is no pareto-optimum between MinGW and Cygwin, it depends on what you want to do:

1. General instructions

1.1. Prerequisites

A number of tools and libraries are needed in order to recompile everything. You don't necessarily need to install everything, depending on what you want to compile.

1.2. Preparing the sources

If you have downloaded the sources from an official source archive or the snapshot, just unpack it.

/!\ If you are using the snapshot, since it contains a build tree for Windows, you first need to clean it with:

make clean

If you want to use SVN, do the following from a terminal:

svn checkout https://www.dynare.org/svn/dynare/trunk dynare
cd dynare
autoreconf -s -i

The last line runs Autoconf and Automake in order to prepare the build environment (this is not necessary if you got the sources from an official source archive or the snapshot).

1.3. Configuring the build tree

You just launch the configure script from a terminal:

./configure

If you have MATLAB, you need to indicate both MATLAB location and MATLAB version. For example, on Linux:

./configure --with-matlab=/usr/local/matlab78 MATLAB_VERSION=7.8

Note that MATLAB version can also specified via the MATLAB family product release (R2009a, R2008b, ...).

You may need to specify additional options to the configure script, see the platform specific instructions below.

If the configuration goes well, the script will tell you which components are correctly configured and will be built.

1.4. Building

Binaries are built with:

make

PDF and HTML documentation are respectively built with:

make pdf
make html

The testsuites can be run with:

make check

2. Debian or Ubuntu

All the prerequisites are packaged. If you want to build everything, install the following packages: