Unable to run example file


I’m trying to run the example file and get the following error:

Configuring Dynare …
error: caught execution error in library function
error: called from:
error: /Applications/Dynare/4.3.1/matlab/dynare_config.m at line 208, column 10
error: /Applications/Dynare/4.3.1/matlab/dynare.m at line 68, column 12

I’am using dynare version 4.3.1 together with octave version 3.6.3. Both are running on OS X.8.2.

Any idea what problem could be? Thanks!

What example file? If it’s distributed in the Dynare examples directory, please tell me the name. Otherwise, post it to the forum.

Anyway, Dynare 4.3.1 was compiled against Octave 3.4 (because it was the latest stable dmg file available at the release of 4.3.1), so you won’t be able to use the Octave mex files in Octave version > 3.4. The nightly snapshot is compiled against 3.6.3, so you can obtain the bleeding-edge octave mex files to replace the ones distributed with 4.3.1 there. If I have the time, I can make you the specific 4.3.1 mex files…

Also, how did you download Octave 3.6.3 for Os X? Homebrew, Fink, MacPorts? Downloaded the test dmg? Compiled it yourself? (this question is for my curiosity).

Hi Houtan,

You are right, I was refering to the file in the dynare examples directory (example1.mod). And regarding your second question: I downloaded octave 3.6.3 via MacPorts (octave-devel port).

Thank you very much for your support. I will try to replace the mex files.

Best regards

Hi Adrian,

I made the mex files: Dynare 4.3.1, Octave 3.6.3, 64 bit. You can download them here, either individually or all together in a zip file:

Dear Houtan

Thank you very much for the new mex-files. Unfortunately, I still get the same error message! I deleted the old mex-files and replaced them by the new ones. I am supposed to do something else? Should I reinstall octave from MacPorts?

Sorry to bother you…

Best regards,

Open Terminal and navigate to the folder that contains your octave binary file. Then, at the command prompt, type:

(provided octave is the name of the binary) and post the output.

Downloading it again from MacPorts won’t change anything. Perhaps, however, if you download it from Homebrew it will, though not necessarily. Since there’s no standard Octave package on Mac, it makes sense that there would be problems sharing binaries as the libraries against which I linked the mex files have probably been built differently.

Sorry for the late reply. I’ve done as you told me, however there are different binary files. Here is the complete output for all binary files:

************************************************** cd /opt/local/bin
************************************************** file octave
octave: Mach-O 64-bit executable x86_64
************************************************** file octave-3.6.3
octave-3.6.3: Mach-O 64-bit executable x86_64
************************************************** file octave-config
octave-config: POSIX shell script text executable
************************************************** file octave-config-3.6.3
octave-config-3.6.3: POSIX shell script text executable

Again, many thank’s for your support!


Yes, I was just making sure you had a 64-bit build from MacPorts.

My second paragraph still holds. I think the binaries would work if you downloaded though homebrew. After installing hombrew, you would type brew install --use-llvm octave

It would also probably work if I downloaded it though MacPorts and built new binaries against that version of Octave. But, to be honest, I’m not going to do that because I don’t like MacPorts as it replicates things that are already distributed with OS X.

The simple truth is that there’s not enough manpower in the Octave community to support Octave distribution on a Mac. So, the best advice I can give you is to find a copy of Matlab for the time being. Dynare works with any version of Matlab that works on a Mac…