dynare4.4.3 + octave 4.0.0 + Xubuntu 16.04 LTS

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

dynare4.4.3 + octave 4.0.0 + Xubuntu 16.04 LTS

Postby computable » Sat May 27, 2017 8:22 pm

I am using Xubuntu 16.04 LTS and installed dynare and octave to run some DSGE models, using "sudo apt-get install octave" and "sudo apt-get install dynare"

Unfortunately I am hitting an error immediately as I try to run the tutorial files here: http://www.dynare.org/documentation-and ... t/tutorial

When trying to run "example1.mod" I get an error.

Here is my entire octave session, with errors:

Code: Select all
GNU Octave, version 4.0.0
Copyright (C) 2015 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

>> dynare example1.mod

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
Found 6 equation(s).
Evaluating expressions...done
Computing static model derivatives:
 - order 1
Computing dynamic model derivatives:
 - order 1
 - order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

warning: delete: no such file: example1_static.mex
warning: called from
    delete at line 47 column 9
    erase_compiled_function at line 23 column 5
    example1 at line 77 column 1
    dynare at line 188 column 1
warning: delete: no such file: example1_dynamic.mex
error: 'trans_A' undefined near line 103 column 7
error: called from
    linsolve at line 103 column 3
    dyn_first_order_solver at line 264 column 18
    stochastic_solvers at line 217 column 18
    resol at line 137 column 14
    stoch_simul at line 88 column 34
    example1 at line 154 column 6
    dynare at line 188 column 1
>>



I've tried a few other examples with similar results.

I googled the error messages and found this post:

- "dynare4.4.3 + octave 4.0.1+ windows10:" viewtopic.php?f=1&t=8286

It refers to this issue on github, which appears to *just* have been closed earlier today: https://github.com/DynareTeam/dynare/issues/1113

Does this appear to be the same problem? If so, do we know when it might be fixed on Linux?

Thanks!
computable
 
Posts: 2
Joined: Sat May 27, 2017 8:10 pm

Re: dynare4.4.3 + octave 4.0.0 + Xubuntu 16.04 LTS

Postby jpfeifer » Sun May 28, 2017 7:03 am

Dynare 4.4.3 only supports Octave 3.8.1. That is why you are experiencing the problems. The unstable version supports 4.2.1. The problem is that the mex-files have to be built against the Octave version you are using. If you scroll down on https://github.com/DynareTeam/dynare you will see the description on how to build Dynare from source on Linux.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: dynare4.4.3 + octave 4.0.0 + Xubuntu 16.04 LTS

Postby computable » Tue May 30, 2017 12:02 pm

Update: here are the steps I ran to get Dynare running on my machine, using info from the link provided above. The "$" indicates this was executed on the linux command line, and the ">>" indicates this was executed on the octave command line:


$ sudo apt-get install build-essential gfortran liboctave-dev libboost-graph-dev libgsl0-dev libmatio-dev libslicot-dev libslicot-pic libsuitesparse-dev flex bison autoconf automake texlive texlive-publishers texlive-extra-utils texlive-formats-extra texlive-latex-extra texlive-fonts-extra latex-beamer texinfo texi2html latex2html doxygen pstoedit epstool xfig gnuplot
$ sudo apt-get install octave
$ cd ~/workspace # on my machine. You can install wherever you want, just adjust the "addpath" below.
$ git clone --recursive http://github.com/DynareTeam/dynare.git
$ cd dynare
$ autoreconf -si
$ ./configure
$ make
$ make html
$ octave
>> addpath ~/workspace/dynare/matlab
>> cd examples
>> dynare example1.mod

This should run the example.

Everything appears to be working. A few examples I've found elsewhere have issues, but I will post separately.

Thanks!
computable
 
Posts: 2
Joined: Sat May 27, 2017 8:10 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests