Page 1 of 1

dynare.m couldn't be cleared because it contains MATLAB code

PostPosted: Sat Jul 08, 2017 1:53 pm
by chriso
Hi Dynare Team,

My laptop is running on Linux Min 18.2 with Matlab R2017a. I installed Dynare 4.4.3 via the package manager. I'm able to run the example1.mod file, but I get the following warning message:

Code: Select all
Warning: The file '/usr/lib/dynare/matlab/dynare.m' could not be cleared because it contains MATLAB code that is currently
executing.
> In example1 (line 7)
  In dynare (line 188)
Warning: The file '/home/chris/Matlab/example1.m' could not be cleared because it contains MATLAB code that is currently
executing.
> In example1 (line 7)
  In dynare (line 188)
Warning: The file '/usr/lib/dynare/matlab/dynare.m' could not be cleared because it contains MATLAB code that is currently
executing.
> In example1 (line 7)
  In dynare (line 188)
Warning: The file '/home/chris/Matlab/example1.m' could not be cleared because it contains MATLAB code that is currently
executing.
> In example1 (line 7)
  In dynare (line 188)
Warning: The file '/usr/lib/dynare/matlab/dynare.m' could not be cleared because it contains MATLAB code that is currently
executing.
> In example1 (line 7)
  In dynare (line 188)
Warning: The file '/home/chris/Matlab/example1.m' could not be cleared because it contains MATLAB code that is currently
executing.
> In example1 (line 7)
  In dynare (line 188)


Is there a way to handle this warning message? Thanks!

Chris

Re: dynare.m couldn't be cleared because it contains MATLAB

PostPosted: Sat Jul 08, 2017 2:02 pm
by chriso
Saw an old thread with the same issue (viewtopic.php?f=1&t=7382).

If run the file with the
Code: Select all
noclearall
option, I get the following warning message:

Code: Select all
Warning: Name is nonexistent or not a directory: /usr/lib/dynare/matlab/../mex/matlab
> In path (line 109)
  In addpath (line 88)
  In dynare_config (line 173)
  In dynare (line 56)

Re: dynare.m couldn't be cleared because it contains MATLAB

PostPosted: Tue Jul 11, 2017 9:19 am
by HoutanBastani
We don't have R2017a installed on a linux server, so I can't test this. These are not important warnings, so I wouldn't worry about them. Perhaps if you install 4.5 you won't see these warnings. To do this, you'll need to compile it from source or, if you can download from Debian experimental, install from here: https://packages.debian.org/buster/dynare. Please post back if you still see the warnings with 4.5.

Re: dynare.m couldn't be cleared because it contains MATLAB

PostPosted: Fri Jul 14, 2017 3:50 pm
by chriso
Thanks, Houtan.

I'm trying to build Dynare from source, but I'm getting the following error:

Code: Select all
configure: error: Can't find UMFPACK
configure: error: ./configure failed for mex/build/octave


even though the libumfpack5.7.1 library is already installed.

EDIT:

Was able to build Dynare by adding --disable-octave in the ./configure options.

The earlier warning messages I got are no longer present in 4.5.0.