The mcc compiler generates an SQL exception for even the simplest Matlab scripts.

조회 수: 1 (최근 30일)
Steven Clark
Steven Clark 2018년 11월 16일
편집: LP 2019년 5월 1일
Simple Matlab function - fred.m
function main
fprintf(1,'Hello\n');
Compile command:
mcc -m -C -v fred.m
Error:
Compiler version: 7.0 (R2018b)
Dependency analysis by REQUIREMENTS.
Unexpected error while determining required deployable files. Compilation terminated. Details:
Error using matlab.depfun.internal.database.SqlDbConnector/doSql
Received exception upon attempting an operation. Exception: [SQL error or missing database file:%2Fapps%2Fshare64%2Fdebian7%2Fmatlab%2F9%2E5%2Ftoolbox%2Fmatlab%2Fdepfun%2F%2Bmatlab%2F%2Bdepfun%2F%2Binternal%2Fpcm%5Fglnxa64%5Fdb?mode=ro&vfs=unix-none. (near "AND": syntax error)]. Details: [SELECT Product.External_Product_ID FROM Product WHERE Product.ID IN (SELECT Product_Dependency.Client FROM Product, Product_Dependency WHERE Product.External_Product_ID = AND Product_Dependency.Service = Product.ID);].
Error in matlab.depfun.internal.ProductComponentModuleNavigator/doSql (line 988)
obj.SqlDBConnObj.doSql(SqlCmd);
Error in matlab.depfun.internal.ProductComponentModuleNavigator/MatlabModulesInMatlabRuntime (line 809)
obj.doSql(query);
Error in matlab.depfun.internal.Schema/expect (line 670)
list = nv.MatlabModulesInMatlabRuntime();
Error in compiler_rules (line 8)
Error in matlab.depfun.internal.Schema/addRules (line 196)
feval(fcn, obj);
Error in matlab.depfun.internal.Completion>targetSchema (line 2860)
s.addRules(rulesFile);
Error in matlab.depfun.internal.Completion>schemaMap (line 2822)
rulesMap(tgt) = targetSchema(target);
Error in matlab.depfun.internal.Completion (line 2266)
obj.Schema = schemaMap(obj.Target);
Error in matlab.depfun.internal.requirements (line 208)
c = matlab.depfun.internal.Completion(items, tgt, 'useDatabase');
Error in matlab.depfun.internal.mcc_call_requirements (line 8)
[parts, resources, exclusions] = matlab.depfun.internal.requirements(items, varargin{:});

답변 (1개)

LP
LP 2019년 5월 1일
편집: LP 2019년 5월 1일
I'm getting a similar issue frequently as well. My soloution is to restart Matlab which is tiresome.
Unexpected error while determining required deployable files. Compilation terminated. Details:
Error using matlab.depfun.internal.database.SqlDbConnector/doSql
Received exception upon attempting an operation. Exception: [SQL error or missing database file:

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by