Dynare Installation on Mac

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.

Dynare Installation on Mac

Postby sashe86 » Tue Apr 03, 2012 4:21 pm

Hi there,

Apologies if this question has already been asked, but I couldn't find a relevant answer.

I'm using Dynare 4.2.2 on Mac OS X version R2010a.

I'm not sure I have installed Dynare correctly. I am not able to run any of the examples. This is the output I'm getting:

EDU>> dynare example1.mod
??? Undefined function or method 'dynare' for input arguments of type 'char'.

I followed all of the steps on http://www.dynare.org/DynareWiki/InstallOnMacOSX so I'm not sure where I could have gone wrong.

Any help is appreciated!

Sashe86
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm

Re: Dynare Installation on Mac

Postby HoutanBastani » Tue Apr 03, 2012 4:51 pm

First, you should update to Dynare 4.2.5. If you have Mac OS X 10.6 or higher, there is no reason to use an old (buggy) version of Dynare.

Second, make sure

Code: Select all
/Applications/Dynare/4.2.5/matlab


is in your Matlab path (type

Code: Select all
path


at the Matlab prompt). If it is not there, type

Code: Select all
addpath /Applications/Dynare/4.2.5/matlab
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Dynare Installation on Mac

Postby sashe86 » Tue Apr 03, 2012 5:21 pm

Thanks for the help. Dynare is installed, but now when i try to run example1.mod, i get the following error:

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.

Starting Dynare (version 4.2.5).
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
ERROR: Can't open file example1.m for writing

??? Error using ==> dynare at 114
DYNARE: preprocessing failed

Any ideas? Thanks again for the help!!
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm

Re: Dynare Installation on Mac

Postby bkjecn » Wed Apr 04, 2012 12:01 am

That is an error that you can get when you do not have write permission in the working directory. To fix this, copy example1.mod to a directory that you create somewhere else (and will thus be able to write to). Then change the working directory of Matlab (or Octave) to this new directory and give it a shot.
bkjecn
 
Posts: 35
Joined: Thu Oct 13, 2011 3:02 am

Re: Dynare Installation on Mac

Postby sashe86 » Wed Apr 04, 2012 1:41 pm

It worked. Thanks HoutanBastani and bkjecn!! :D
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm

Re: Dynare Installation on Mac

Postby Tugrul » Tue Apr 10, 2012 2:52 pm

I have the same problem but with Windows XP installed dynare 4.2.5. I am using Matlab 6.5 and cannot run any of the examples in the directory of "Examples", although I followed the installation guide, I think.

Tugrul
Tugrul
 
Posts: 2
Joined: Tue Apr 10, 2012 1:29 pm

Re: Dynare Installation on Mac

Postby HoutanBastani » Wed Apr 11, 2012 2:46 pm

Did you try running the examples from a different directory?

Also note that Dynare supports Matlab 7.0 or later, so there may be other problems. It is recommended that you upgrade your Matlab version if you want to use Dynare.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Dynare Installation on Mac

Postby Tugrul » Wed Apr 11, 2012 7:16 pm

Hello,

Unfortunately, I tried to run the examples from another directory but still I get the same error. The problem may be the Matlab version 6.5. Now I need to get version 7 or higher.

I will let you know when it runs.

Thanks.

Tugrul
Tugrul
 
Posts: 2
Joined: Tue Apr 10, 2012 1:29 pm

Re: Dynare Installation on Mac

Postby bkjecn » Wed Apr 11, 2012 8:49 pm

Matlab will be faster, but if you want to see if it runs, you could always try Octave for free. www.gnu.org/software/octave/
bkjecn
 
Posts: 35
Joined: Thu Oct 13, 2011 3:02 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 3 guests

cron