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

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.

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

Postby chriso » Sat Jul 08, 2017 1:53 pm

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
chriso
 
Posts: 3
Joined: Sat Jul 08, 2017 1:40 pm

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

Postby chriso » Sat Jul 08, 2017 2:02 pm

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)
chriso
 
Posts: 3
Joined: Sat Jul 08, 2017 1:40 pm

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

Postby HoutanBastani » Tue Jul 11, 2017 9:19 am

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

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

Postby chriso » Fri Jul 14, 2017 3:50 pm

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.
chriso
 
Posts: 3
Joined: Sat Jul 08, 2017 1:40 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests