Problems using mcc (R2015b)
6 views (last 30 days)
Show older comments
Hi,
I'm trying to use mcc and am receiving the following error (this error message takes a very long time to appear):
>> mcc -m hello.m
Error using matlab.depfun.internal.database.SqlDbConnector/doSql
Received exception (The database
file:%2Fsw%2FMATLAB%2FR2015b%2Ftoolbox%2Fmatlab%2Fdepfun%2F%2Bmatlab%2F%2Bdepfun%2F%2Binternal%2Frequirements%5Fglnxa64%5Fdfdb?mode=ro
is locked, or a table in the database is locked. (database is locked)) upon
attempting an operation; details: SELECT Name FROM Target WHERE ID IN (SELECT
DISTINCT Target FROM Component_Path_Item) (attempts: 200; interval [in ms]
between attempts: 500).
Error in matlab.depfun.internal.SearchPath/read_targets_from_database (line
534)
db.doSql(query);
Error in matlab.depfun.internal.SearchPath (line 886)
s.KnownTargets = read_targets_from_database(s);
Error in matlab.depfun.internal.requirements (line 139)
s = matlab.depfun.internal.SearchPath(target, varargin{2:end});
Error using mcc
Unexpected error while determining required deployable files. Compilation
terminated.
The reported file /sw/MATLAB/R2015b/toolbox/matlab/depfun/+matlab/+depfun/+internal/requirements_glnxa64_dfdb exists.
I've tried setting MCC_USE_DEPFUN but that doesn't seem to have improved the situation - running
>> mcc -m hello
sits there for a very long time until the connection to the underlying shell times out and is killed.
Any help appreciated.
Thanks,
Adrian
0 Comments
Answers (1)
Mudambi Srivatsa
on 28 Sep 2016
I understand that you are trying to use "mcc" with MATLAB R2015b. You noticed that it takes a very long time to execute until the connection is timed out after setting 'MCC_USE_DEPFUN' environment variable. I am assuming that you followed the steps in the MATLAB Answers link below for setting the environment variable.
https://www.mathworks.com/matlabcentral/answers/259763-mcc-problem-on-linux-2015b
I suspect the license file located on a network server might be causing the issue. If MATLAB fails to connect to the remote license file, it results in the connection timeout issue. I suggest you to use a local license file with mcc to verify the same. You can pass the local license file to "mcc" using '-Y' parameter as follows:
>> mcc -m hello.m -Y license.lic
Note that the '-Y' flag works only with the command-line mode.
If the issue persists even after using the local license file or if the local license cannot be used due to restrictions, I suggest you to contact MathWorks Technical Support for further assistance.
0 Comments
See Also
Categories
Find more on Reporting and Database Access in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!