Fail to start: execution error in library function

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.

Fail to start: execution error in library function

Postby justus » Mon Jun 17, 2013 7:06 pm

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!
justus
 
Posts: 9
Joined: Mon Jun 17, 2013 6:59 pm

Re: Fail to start: execution error in library function

Postby HoutanBastani » Tue Jun 18, 2013 4:06 am

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
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Fail to start: execution error in library function

Postby justus » Tue Jun 18, 2013 12:50 pm

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
justus
 
Posts: 9
Joined: Mon Jun 17, 2013 6:59 pm

Re: Fail to start: execution error in library function

Postby HoutanBastani » Tue Jun 18, 2013 4:26 pm

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?
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Fail to start: execution error in library function

Postby justus » Tue Jun 18, 2013 5:31 pm

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
justus
 
Posts: 9
Joined: Mon Jun 17, 2013 6:59 pm

Re: Fail to start: execution error in library function

Postby HoutanBastani » Wed Jun 19, 2013 12:44 pm

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.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Fail to start: execution error in library function

Postby justus » Wed Jun 19, 2013 4:24 pm

Thank you very much for your help and patience, Houtan!! Now it's just working smoothly!
justus
 
Posts: 9
Joined: Mon Jun 17, 2013 6:59 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests