Unable to run example file

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.

Unable to run example file

Postby Porteiro81 » Mon Nov 19, 2012 1:08 pm

Hi,

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!
Porteiro81
 
Posts: 4
Joined: Mon Nov 19, 2012 1:02 pm

Re: Unable to run example file

Postby HoutanBastani » Wed Nov 21, 2012 10:29 am

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

Re: Unable to run example file

Postby Porteiro81 » Thu Nov 22, 2012 3:57 pm

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
Adrian
Porteiro81
 
Posts: 4
Joined: Mon Nov 19, 2012 1:02 pm

Re: Unable to run example file

Postby HoutanBastani » Mon Nov 26, 2012 11:20 am

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:
http://www.dynare.org/houtan/dynare_4.3.1_octave_3.6.3_mex_64bit
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Unable to run example file

Postby Porteiro81 » Mon Nov 26, 2012 2:42 pm

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,
Adrian
Porteiro81
 
Posts: 4
Joined: Mon Nov 19, 2012 1:02 pm

Re: Unable to run example file

Postby HoutanBastani » Mon Nov 26, 2012 5:33 pm

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

Code: Select all
file octave


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

Re: Unable to run example file

Postby Porteiro81 » Mon Dec 03, 2012 9:14 am

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!
Porteiro81
 
Posts: 4
Joined: Mon Nov 19, 2012 1:02 pm

Re: Unable to run example file

Postby HoutanBastani » Mon Dec 03, 2012 10:46 am

Hi,

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


Return to Dynare help

Who is online

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