Gurobi mex file cannot be found despite it being clearly there

17 ビュー (過去 30 日間)
Alessandro Maria Laspina
Alessandro Maria Laspina 2022 年 1 月 4 日
回答済み: Jan 2022 年 1 月 4 日
Hello,
I have downloaded Gurobi 9.5.0 along with its license (academic). I am unsure if this is a gurobi side issue or if its MATLAB, but whenever I try to use Gurobi with YALMIP, or even just run the setup for the paths, I get the following error:
Error using gurobi_setup (line 89)
Invalid MEX-file 'C:\gurobi950\win64\matlab\gurobi.mexw64': The specified module could not be found.
What is odd is that the mex file is called exactly the same name as specified in the error, and has the exact same path.
  1 件のコメント
Rik
Rik 2022 年 1 月 4 日
The mex file is expecting a specific module, but can't find it. This will sometimes happen if you try to run a mex file from a new release on an old release, but since you are using R2020a, that seems an unlikely cause.
I would expect that you need to install some software that the compiler assumed would be on the target machine. I don't know how you would find out what that would be.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2022 年 1 月 4 日
Use the Dependency Walker to find out, which library is missing:
This might be the runtime libraries of the compiler.

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by