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

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:

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

Saw an old thread with the same issue (Strange warning message).

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

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) 

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: packages.debian.org/buster/dynare. Please post back if you still see the warnings with 4.5.

Thanks, Houtan.

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

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.