Installing Dynare on Ubuntu

Asked by Tor Einarsson on 2019-09-10

Hi there,

I am considering installing the software Dynare (Octave based) in a recently installed Ubuntu operating system.

Looking up the Dynare's website, one comes across a jungle of files of all sorts, .tar, .xz, etc. However,
 there seems to be a little in the way of instructions on the actual STEPS to follow to complete the installation.
Dynare.wiki is of no more help here.

I wonder if someone could provide some useful tips in this regard?

Thank you,
Tor Einarsson

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu dynare Edit question
Assignee:
No assignee Edit question
Last query:
2019-09-11
Last reply:
2019-09-11
Manfred Hampl (m-hampl) said : #1

If you want to install Dynare on Ubuntu, then you should use the pre-packaged version from the Ubuntu repositories.
The command

sudo apt install dynare

should be sufficient. The only caveat: Depending on the Ubuntu release that you are running, you may get an older version of Dynare and not the newest one (e.g. for Ubuntu 18.04 you get Dynare version 4.5.4; only Ubuntu 19.04 has Dynare version 4.5.7)

Remark: If you also need matlab support in Dynare, then you should also install dynare-matlab, and installing dynare-doc might also be a good idea for the full documentation.

Tor Einarsson (tein) said : #2

Dear Manfred Hampl,

Thanks for your promt response.

I'm running the 19.04 version of Ubuntu. I installed Dynare, without specifying a version, but it doesn´t
seem to run ('command unknown'). I also installed
Octave (got version 4.4.1), which runs.

Some further steps seem necessary to activate Dynare.

Tor
________________________________
From: <email address hidden> <email address hidden> on behalf of Manfred Hampl <email address hidden>
Sent: 10 September 2019 07:22
To: Tor Einarsson <email address hidden>
Subject: Re: [Question #683799]: Installing Dynare on Ubuntu

Your question #683799 on dynare in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799

    Status: Open => Answered

Manfred Hampl proposed the following answer:
If you want to install Dynare on Ubuntu, then you should use the pre-packaged version from the Ubuntu repositories.
The command

sudo apt install dynare

should be sufficient. The only caveat: Depending on the Ubuntu release
that you are running, you may get an older version of Dynare and not the
newest one (e.g. for Ubuntu 18.04 you get Dynare version 4.5.4; only
Ubuntu 19.04 has Dynare version 4.5.7)

Remark: If you also need matlab support in Dynare, then you should also
install dynare-matlab, and installing dynare-doc might also be a good
idea for the full documentation.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799

You received this question notification because you asked the question.

Manfred Hampl (m-hampl) said : #3

Open a terminal window and issue the command

dynare++

What happens?

Tor Einarsson (tein) said : #4

This is what happens:

-----------------------------------------------------------------------------------
dynare++

usage: dynare++ [--help] [--version] [options] <model file>

    --help print this message and return
    --version print version and return

options:
    --per <num> number of periods simulated after burnt [100]
    --burn <num> number of periods burnt [0]
    --sim <num> number of simulations [80]
    --rtper <num> number of RT periods simulated after burnt [0]
    --rtsim <num> number of RT simulations [0]
    --condper <num> number of periods in cond. simulations [0]
    --condsim <num> number of conditional simulations [0]
    --steps <num> steps towards stoch. SS [0=deter.]
    --centralize centralize the rule [do centralize]
    --no-centralize do not centralize the rule [do centralize]
    --prefix <string> prefix of variables in Mat-4 file ["dyn"]
    --seed <num> random number generator seed [934098]
    --order <num> order of approximation [no default]
    --threads <num> number of max parallel threads [2]
    --ss-tol <num> steady state calcs tolerance [1.e-13]
    --check pesPES check model residuals [no checks]
                         lower/upper case switches off/on
                           pP checking along simulation path
                           eE checking on ellipse
                           sS checking along shocks
--check-evals <num> max number of evals per residual [1000]
    --check-num <num> number of checked points [10]
    --check-scale <num> scaling of checked points [2.0]
    --no-irfs shuts down IRF simulations [do IRFs]
    --irfs performs IRF simulations [do IRFs]
    --qz-criterium <num> threshold for stable eigenvalues [1.000001]
----------------------------------------------------------------------------------------

Tor
________________________________
From: <email address hidden> <email address hidden> on behalf of Manfred Hampl <email address hidden>
Sent: 10 September 2019 13:27
To: Tor Einarsson <email address hidden>
Subject: Re: [Question #683799]: Installing Dynare on Ubuntu

Your question #683799 on dynare in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799

    Status: Open => Needs information

Manfred Hampl requested more information:
Open a terminal window and issue the command

dynare++

What happens?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799

You received this question notification because you asked the question.

Manfred Hampl (m-hampl) said : #5

As you can see from the output, dynare is running, but needs additional parameters and/or options (e.g. a model file).
I suggest that you see the documentation for further details.

If you are seeing that output then the package is installed......

Tor Einarsson (tein) said : #8

Dynare is now running on my linux system (to a degree anyway).

 The next question is: how can one convert one of the files
created, the .mat file (storing much of the output, doesn´t it?) to a readable format?

Tor Einarsson
________________________________
From: <email address hidden> <email address hidden> on behalf of Manfred Hampl <email address hidden>
Sent: 10 September 2019 13:47
To: Tor Einarsson <email address hidden>
Subject: Re: [Question #683799]: Installing Dynare on Ubuntu

Your question #683799 on dynare in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799

    Status: Open => Answered

Manfred Hampl proposed the following answer:
As you can see from the output, dynare is running, but needs additional parameters and/or options (e.g. a model file).
I suggest that you see the documentation for further details.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799/+confirm?answer_id=4

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/dynare/+question/683799

You received this question notification because you asked the question.

Manfred Hampl (m-hampl) said : #9

Your last question has nothing to do with Ubuntu, you better ask elsewhere.

Try
https://www.dynare.org/
https://www.dynare.org/resources/

Can you help with this problem?

Provide an answer of your own, or ask Tor Einarsson for more information if necessary.

To post a message you must log in.