Since Dynare 4.0.0, precompiled binaries packages and source packages are available for Debian and Ubuntu distributions of GNU/Linux. These packages work with both Octave and Matlab. They are available through standard package repositories.

1. Availability

1.1. On Debian GNU/Linux

Packages are available for Lenny (the current testing and future stable distribution). They should also work on Sid (the unstable distribution).

The Etch (the current stable distribution, version 4.0) is not supported, since it does not provide Octave version 3.

Binaries are available for the i386 and amd64 architectures. See below for how to recompile the package if you use another architecture.

1.2. On Ubuntu

Packages are available for Hardy Heron (Ubuntu version 8.04). No other distribution is supported.

Binaries are available for the i386 and amd64 architectures. See below for how to recompile the package if you use another architecture.

2. Configuring your package manager to receive Dynare packages

This should be done only before the first installation.

2.1. Importing the cryptographic signing key

First, for security reasons, you should download the archive signing key, which is used to authenticate Dynare packages.

There are two ways of doing it:

sudo wget -O - http://www.dynare.org/dynare.public.key | sudo apt-key add -

2.2. Adding the correct APT lines to your package sources

Then you need to give two "APT lines" to your package manager; these lines are given in the following subsections (depending on your distribution).

For adding them, you can either do it:

2.2.1. APT lines for Debian "Lenny"

deb http://www.dynare.org/debian lenny main contrib
deb-src http://www.dynare.org/debian lenny main

2.2.2. APT lines for Ubuntu "Hardy"

deb http://www.dynare.org/ubuntu hardy main contrib
deb-src http://www.dynare.org/ubuntu hardy main

3. Installing the packages

Using your favorite package manager (apt-get, aptitude, synaptic), update your package list.

You should now see three new packages: dynare, dynare-matlab7.4 and dynare-matlab7.5. The former is in the "Mathematics" section, the latter are in the "Mathematics (contrib)" section.

The dynare package contains a fully functional installation of Dynare for both Octave and Matlab. The installation is made under /usr/lib/dynare. The package contains: the preprocessor, the M-files, and the optimized dynamic libraries for Octave.

Since the dynare package does not contain optimized dynamic libraires for Matlab, you should install one of the two dynare-matlab* for full performance under Matlab:

The packages also contain documentation (HTML and PDF manual, PDF userguide, and other documents). These are installed in /usr/share/doc/dynare. The manual and the userguide are also registered:

For the moment, the packages don't contain any example MOD-file, but this should change in the near future.

Don't forget to regularly run your package manager to get the most recent version of Dynare.

4. Using Dynare

You can run Dynare from Octave or Matlab, by adding the correct path at runtime:

addpath /usr/lib/dynare/matlab

Under Octave, you may also want to type:

mark_as_command dynare

Then, launch Dynare with:

dynare filename.mod

Under Octave, it is possible to create a startup file which adds the correct path at every start. See DynareOctave on this topic and on other Octave-specific issues.

5. Compiling the package from source

You can be interested in recompiling the packages, especially if binaries for your architecture are not available.

Download and unpack the source in the current directory by typing:

apt-src install dynare

(you may be asked the root password for installing packages necessary for the building process)

This should have created a dynare-??? directory, where ??? is the current version number. Go into that directory, and type:

dpkg-buildpackage -b -uc

This should build the dynare-??? package (in a .deb file), and also the dynare-matlab7.4 (resp. dynare-matlab7.5) package if you have Matlab 7.4 (resp. 7.5) intalled under /usr/local/matlab74 (resp. /usr/local/matlab75). You can tune the debian/rules file if your Matlab installation is located at another place.

Note: if you want to become the official Dynare package builder for your favourite architecture, please contact Dynare authors and we will distribute your binaries.