Page 1 of 1

Dynare++ Issue with OS X El Capitan

PostPosted: Tue Oct 06, 2015 4:12 pm
by dobster936
So I just updated to El Capitan yesterday and have some homework due using Dynare++ by midnight tonight.

My problem is since the update to OS X El Capitan, I get the following error while calling Dynare++ from Matlab:

Code: Select all
!./dynare++ --per 20 --sim 3 TS_BY04.mod

dyld: lazy symbol binding failed: Symbol not found: _dgetrf_
  Referenced from: /Users/davleather/Dropbox/Max's Class/HW 3/./dynare++
  Expected in: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib

dyld: Symbol not found: _dgetrf_
  Referenced from: /Users/davleather/Dropbox/Max's Class/HW 3/./dynare++
  Expected in: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib

./dynare++ --per 20 --sim 3 TS_BY04.mod: Trace/breakpoint trap


Any advice?

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Tue Oct 06, 2015 4:54 pm
by jpfeifer
Apart from "Never change a running system when you have to do something urgent", not yet. We will investigate the issue.

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Tue Oct 06, 2015 6:04 pm
by dobster936
Lesson learned. Thanks!

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Tue Oct 06, 2015 10:29 pm
by HoutanBastani
I can't be of more help as I still haven't upgraded to OS X 10.11 and won't be doing so until I get a new computer (i.e. not too soon). In any case, as with most software, we do not support operating systems that were released after our software was. OS X 10.11 will be supported with the next release of Dynare, probably a few months from now. Your best bet is either to downgrade to 10.10, run 10.10/Windows/Debian/Ubuntu in a VirtualBox, or compile dynare++ on 10.11 (follow the instructions https://github.com/DynareTeam/dynare#mac-os-x to get started, though you may need to figure things out if it doesn't compile on OS X 10.11)

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Thu Oct 08, 2015 6:08 pm
by dobster936
Thanks Houtan. This really saved me!

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Fri Jan 15, 2016 12:10 pm
by Brody
dobster936 wrote:So I just updated to El Capitan yesterday and the bathmate https://peblueprint.com/bathmate-review have some homework due using Dynare++ by midnight tonight.

My problem is since the update to OS X El Capitan, I get the following error while calling Dynare++ from Matlab:


I still haven't updated yet because of stuff like this. I hate when something is working and then you update and it all goes wrong. I'm on 10.10 currently, is it safe to upgrade?

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Fri Jan 15, 2016 12:48 pm
by HoutanBastani
It won't be safe to upgrade until the next release of Dynare.

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Sun Feb 28, 2016 5:58 pm
by mrb
Hi,

I have the same problem. Same exact message with dynare++

I've found a quick fix for Mac users consisting of replacing the library libBLAS.dylib with the old one:
https://georgegarside.com/blog/osx/vect ... l-capitan/

Instead of doing that, I was wondering whether one can tell dynare++ to search for the library in a different folder. Is this possible?

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Mon Feb 29, 2016 9:28 am
by HoutanBastani
In the solution from the website, be sure to save a backup of the old shared blas librar, or the new version of dynare++ (to be released in a few months) won't work. Also, other programs that depend on the new version of that library may not work either.

For the paths, when running dynare++ from the terminal, you can change the order in which directories are searched. See: http://www.cyberciti.biz/faq/unix-linux-adding-path/

Best,
Houtan

Re: Dynare++ Issue with OS X El Capitan

PostPosted: Wed Apr 26, 2017 10:12 am
by aino
FYI, anyone who runs into this problem, it seems that this is now fixed in the unstable version.

I had the same issue when running Dynare++ (from the 4.4.3 release) on macOS Sierra.

Installing the unstable version of Dynare (and the Dynare++ that comes with it) resolved the problem without having to mess with the libBLAS.dylib file. So while waiting for the new stable release of Dynare, try installing the unstable version and use that when running Dynare++, even if you keep the old stable version for regular Dynare. See here for installation instructions: viewtopic.php?f=1&t=18911