Page 1 of 1

Cant start Dynare on Ubuntu 12.10

PostPosted: Sat Mar 09, 2013 2:59 pm
by Falc7
So I installed Dynare on Ubuntu 12.10 using the reposititories, and running it under octave, not matlab. Then i start Octave, a terminal window pops up:

Code: Select all
octave:1> dynare filename.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).
 
error: DYNARE: can't open filename.mod
error: called from:
error:   /usr/share/octave/site/m/dynare.m at line 104, column 5
octave:1>


Re: Cant start Dynare on Ubuntu 12.10

PostPosted: Mon Mar 11, 2013 3:23 pm
by HoutanBastani
You need to change to the directory that contains the .mod file before running dynare.

Re: Cant start Dynare on Ubuntu 12.10

PostPosted: Wed Mar 13, 2013 6:16 am
by blueberry
Hi everyone,

I have a similar problem.

I am new to Linux. I have Ubuntu 12.04.2 and Dynare 4.2.4-1.

I downloaded Octave 3.2.4, then Dynare.
I then changed my current directory and ran dynare:


octave-3.2.4:1> cd/home/oliver/Documents/DynareModFiles
octave-3.2.4:2> dynare example1.mod

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

error: DYNARE: can't open example1.mod
error: called from:
error: /usr/share/octave/site/api-v37/m/dynare.m at line 98, column 5



Any hints on what is wrong?

Thank you!

Re: Cant start Dynare on Ubuntu 12.10

PostPosted: Wed Mar 13, 2013 7:27 am
by HoutanBastani
Add a space between "cd" and the file path and try again.

Re: Cant start Dynare on Ubuntu 12.10

PostPosted: Wed Mar 13, 2013 9:02 am
by blueberry
Thank you, it worked!
I should have read a little more about file paths in linux before asking.

Re: Cant start Dynare on Ubuntu 12.10

PostPosted: Wed Mar 13, 2013 4:37 pm
by Falc7
Ah yes makes sense thanks