trouble compiling gurobi matlab interface windows 64 bit OS

747 views
Skip to first unread message

phil.m...@gmail.com

unread,
Jan 27, 2014, 10:10:10 PM1/27/14
to gur...@googlegroups.com
Hello,

I have been using the gurobi MATLAB interface for the past while on a 32 bit windows OS with no problems. However, I have installed it on a 64 bit windows system now and have trouble when I initially try to compile the gurobi interface by running the gurobi_setup.m file.

I get the following error message from matlab:
"    >> gurobi_setup
          Error using gurobi_setup (line 90)
          Invalid MEX-file 'C:\gurobi560\win64\matlab\gurobi.mexw64': The specified module could not be found.
 "
and when I look in the MATLAB folder in Gurobi, it has the gurobi.mexw64 file, so I don't understand why it says the specified module can't be found. I am probably missing some simple step, but any input on this matter would be greatly appreciated.

Cheers,

Phil


Christopher Maes

unread,
Jan 28, 2014, 9:59:41 AM1/28/14
to gur...@googlegroups.com
Hi Phil,

That error indicates that the dynamic loader could not find the
gurobi56.dll that the gurobi.mexw64 file depends on. The DLL should be
located in C:\gurobi560\win64\bin. The installer updates your PATH
environmental variable to point to this directory. But you may need to
restart for these changes to take affect. If a restart doesn't help,
you may have a corrupt installation. You can try downloading the
installer again and reinstalling Gurobi. An easy way to test that the
install has been successful, is to launch the interactive shell by
clicking on the Gurobi icon on your desktop. If that gives you the
gurobi> prompt, the dll should be in the correct place.

One other thing to watch out for (since you mentioned you are
switching from 32 bit): if you are using 64 bit Gurobi you must use 64
bit MATLAB.

Chris
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Gurobi Optimization" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gurobi+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages