To create a custom installer, you need to include the runtime libraries used by your application. The exact configuration depends on the Gurobi API that you are using:
All:
Any program that uses Gurobi needs to include the Gurobi native-code library (eg for Version 12: gurobi120.dll
for Windows, libgurobi120.so
for Linux, or libgurobi120.dylib
for macOS), and the program must be able to find the library when it runs. These libraries are included in the folders of a Gurobi installation. You can either place the file in the same directory as your program, or you can set the appropriate environment variable so that your program can find it (PATH
on Windows, LD_LIBRARY_PATH
on Linux, DYLD_LIBRARY_PATH
on macOS).
Java:
For Java programs, you also need to include the Gurobi JNI library, eg:
-
GurobiJni120.dll
on Windows -
libGurobiJni120.so
on Linux -
libGurobiJni100.jnilib
on macOS (v10 and earlier) -
libGurobiJni110.dylib
on macOS (v11 and later)
Again, you must ensure that your program can use it.
.NET:
For .NET programs, you also need to include the appropriate Gurobi .NET library depending on whether the application is .NET Standard 2.0 (gurobi120.netstandard20.dll
) or .NET Framework (gurobi120.NET.dll
). Again, you must ensure that your program can use it.
You may need additional compression tools such as 7-Zip, gzip, or bzip2 installed on the system if you want to read and/or write compressed files.
Please remember that a license file needs to be acquired for the target machine. If you include the grbprobe and grbgetkey tools, please make sure to update them alongside the Gurobi libraries.
Comments
0 comments
Article is closed for comments.