Page 1 of 1

Configuration issue with Mac

PostPosted: Fri Apr 14, 2017 3:38 pm
by minskymoment
Hi, Apologies for the basic question, but I've been struggling for a while with this.

I am running 4.4.3 on Matlab R2016a on Mac OXS 10.11.6.

I have:
- installed dynare to the applications folder
- added (folder not subfolders) the dynare/matlab/ folder to the path
- run:
>> cd /Applications/Dynare/4.4.3/examples
>> dynare example1.mod

And am getting the following error message:
"ERROR: Can't open file example1.m for writing

Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in dynare (line 168)
fprintf(fid, '%s', result);"

Do you have any suggestions?

Many thanks

Re: Configuration issue with Mac

PostPosted: Fri Apr 14, 2017 3:52 pm
by minskymoment
Oh and I've set the Sharing & Permissions for both Matlab and the Dynare folder in Applications to Read & Write for all users.

Re: Configuration issue with Mac

PostPosted: Fri Apr 14, 2017 4:11 pm
by jpfeifer
Please try copying the example to a folder where you definitely have write permission and try whether the problem persists there.

Re: Configuration issue with Mac

PostPosted: Fri Apr 14, 2017 8:36 pm
by minskymoment
That worked the trick. Thanks very much!