How to create redistributable CBC binaries #308
Unanswered
simonhoerdumbonde
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I'm new to Linux, but nonetheless I have been able to build CBC binaries and get them running.
I followed the instructions in the mip documentation https://python-mip.readthedocs.io/en/latest/install.html and another discussion #280
However, I would like to move these binaries to another machine and build a docker image that contains them. Unfortunately I cannot get this working. I also tried just renaming the folder that the binaries are build in, which also causes mip to not be able to load the library.
I build the binaries using a prefix
--prefix=/home/simon/coinbrew_all/my_binaries/
I'm then able to run my code with these binaries doing something like this:
But if I rename the folder
coinbrew_all
tocoinbrew_all_test
and update the PMIP_CBC_LIBRARY and LD_LIBRARY_PATH references accordingly I get an error (NameError: name 'cbclib' is not defined
) indicating that the library has not been loaded.Question
How do I build CBC binaries that I can move around like those distributed with the mip package?
Beta Was this translation helpful? Give feedback.
All reactions