Page 1 of 1

Fail to start: execution error in library function

PostPosted: Mon Jun 17, 2013 7:06 pm
by justus
Hi,

I encountered problems when trying to get started with dynare. I have a Mac OS 10.7.5, Dynare 4.3.3, Octave 3.6.4, X11 XQuartz 2.6.5 (xorg-server 1.10.6)
The error I am getting is the following:

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

The file I was trying to run is the example1.mod file from the UserGuide. Due to similar problems discussed here (viewtopic.php?f=1&t=4452 and viewtopic.php?f=1&t=3511) I assume that this is rather a problem with my setup.

I have closely followed the isntallation instructions outlined here: http://www.dynare.org/DynareWiki/InstallOnMacOSX There have been no difficulties whatsoever during the process.

Can anybody give me a hint. Sorry, I am not too deep into it that I could figure out the problem just from the errors.

Thanks for your help in advance!

Re: Fail to start: execution error in library function

PostPosted: Tue Jun 18, 2013 4:06 am
by HoutanBastani
Hi,

What is the output when you type the following into terminal:
Code: Select all
file /usr/local/Cellar/octave/3.6.4/bin/octave

Re: Fail to start: execution error in library function

PostPosted: Tue Jun 18, 2013 12:50 pm
by justus
Hi Houtan!

Thanks for your quick reply! Terminal says the following:

Code: Select all
/usr/local/Cellar/octave/3.6.4/bin/octave: Mach-O 64-bit executable x86_64

Re: Fail to start: execution error in library function

PostPosted: Tue Jun 18, 2013 4:26 pm
by HoutanBastani
Hi,

If you download the latest Dynare snapshot, http://www.dynare.org/snapshot/macosx/, install it and copy the files from
Code: Select all
/Applications/Dynare/4.4_2013-06-18/mex/octave
to
Code: Select all
/Applications/Dynare/4.3.3/mex/octave
does it work?

Re: Fail to start: execution error in library function

PostPosted: Tue Jun 18, 2013 5:31 pm
by justus
Hmm, unfortunately it still does not work. So it's about the mex-files in combination with octave + dynare? Sorry to bother you...
Thanks a lot for your help, though!

Code: Select all
octave:1> addpath /Applications/Dynare/4.3.3/matlab
octave:2> cd /Users/justus/Desktop/
octave:3> dynare example1
 
Configuring Dynare ...
error: caught execution error in library function
error: called from:
error:   /Applications/Dynare/4.3.3/matlab/dynare_config.m at line 213, column 10
error:   /Applications/Dynare/4.3.3/matlab/dynare.m at line 68, column 12


If I run it through the latest version, the following happens:

Code: Select all
octave:1> addpath /Applications/Dynare/4.4_2013-06-18/matlab
octave:2> cd /Users/justus/Desktop/
octave:3> dynare example1.mod
 
Configuring Dynare ...
error: caught execution error in library function
error: called from:
error:   /Applications/Dynare/4.4_2013-06-18/matlab/dynare_config.m at line 211, column 10
error:   /Applications/Dynare/4.4_2013-06-18/matlab/dynare.m at line 68, column 12

Re: Fail to start: execution error in library function

PostPosted: Wed Jun 19, 2013 12:44 pm
by HoutanBastani
Hi, Yes, the mex files may not have been made correctly for 10.7, as I compiled them on 10.8.

Do the same thing as yesterday, but try using the mex files located here instead:
http://www.dynare.org/houtan/octave/

And tell me how it goes. If this doesn't work, I'd be more inclined to think there was a problem with your setup than with the mex files.

Re: Fail to start: execution error in library function

PostPosted: Wed Jun 19, 2013 4:24 pm
by justus
Thank you very much for your help and patience, Houtan!! Now it's just working smoothly!