Invalid MEX-FILE in MATLAB 2017 prerelease version
Posted: Sun Feb 12, 2017 11:11 am
Hi Everyone,
I have a problem running my code which is written in Dynare and runs in MATLAB. It is a log-linearized model with Bayesian estimation of parameters. The code runs perfectly in earlier versions of MATLAB on both PC and Mac but cannot run after computing steady state in my current version of MATLAB: 2017 prerelease (updated in December 2016).
The error reports:
Invalid MEX-file '/Applications/Dynare/4.4.3/matlab/../mex/matlab/osx64/mjdgges.mexmaci64':
dlopen(/Applications/Dynare/4.4.3/matlab/../mex/matlab/osx64/mjdgges.mexmaci64, 6): Library not loaded:
@loader_path/libmex.dylib
Referenced from: /Applications/Dynare/4.4.3/mex/matlab/osx64/mjdgges.mexmaci64
Reason: image not found.
Does anyone encounter the same problem and does anyone know how to solve this?
I tried copying the 'mex' file under Dynare/4.4.3/matlab but it didn't work, still reporting the same error. I also tried changing the path in the 'Dynare_config.m' to make MATLAB follow the path of 'Dynare/4.4.3/mex' but still reporting the same error.
Thanks in advance
Kate
I have a problem running my code which is written in Dynare and runs in MATLAB. It is a log-linearized model with Bayesian estimation of parameters. The code runs perfectly in earlier versions of MATLAB on both PC and Mac but cannot run after computing steady state in my current version of MATLAB: 2017 prerelease (updated in December 2016).
The error reports:
Invalid MEX-file '/Applications/Dynare/4.4.3/matlab/../mex/matlab/osx64/mjdgges.mexmaci64':
dlopen(/Applications/Dynare/4.4.3/matlab/../mex/matlab/osx64/mjdgges.mexmaci64, 6): Library not loaded:
@loader_path/libmex.dylib
Referenced from: /Applications/Dynare/4.4.3/mex/matlab/osx64/mjdgges.mexmaci64
Reason: image not found.
Does anyone encounter the same problem and does anyone know how to solve this?
I tried copying the 'mex' file under Dynare/4.4.3/matlab but it didn't work, still reporting the same error. I also tried changing the path in the 'Dynare_config.m' to make MATLAB follow the path of 'Dynare/4.4.3/mex' but still reporting the same error.
Thanks in advance
Kate