Forum Discussion
FICO
5 years agoCommunity Manager
Using Xpress Optimizer 8.12.3 in Docker Container
Hi, We are using Xpress 8.12.3 within the docker container. We are using Xpress with .net core C#. We ran into a problem when we wanted to use Azure Service Bus + Masstransit in the same container....
FICO
5 years agoCommunity Manager
I guess the problem is then that setting LD_LIBRARY_PATH causes some of your other applications to pull in 3rd party shared libraries from the Xpress distribution and these libraries are not compatible with your other applications?
Unfortunately, the Xpress application needs to know the place at which it can find the Xpress shared libraries, so you are more or less stuck with setting LD_LIBRARY_PATH.
Depending on how exactly you invoke the application that uses Xpress, there are different ways to work around this issue:
- Do not set LD_LIBRARY_PATH *globally*. Instead that it *only* for the application.
- If the LD_LIBRARY_PATH must be set globally (or if setting it only for the application does not fix the issue), you can try to figure out which of the 3rd party libraries shipped with Xpress cause the problems. Then figure out in which directory the respective 3rd party library is installed on your system and add that directory to the LD_LIBRARY_PATH *before* the path to Xpress libraries.
Another alternative would be to just rename the 3rd party libraries in the Xpress installation directory one by one and see whether this fixes the problem.
If possible, I recommend setting the LD_LIBRARY_PATH only for the application.

