! Sometimes when one has been banging their head against a wall with linking issues, it is hard to take a step back and do the simplest thing.
I removed the third party libraries first as you suggested and then tried compiling the basic program that loads the cplex model and calls CPXXlpopt(). That didn't work at first, so I ran `ldd` on the binary within my runtime environment to examine the paths to the shared libraries. When I moved the shared libraries to the correct paths in the runtime environment, the program worked!
Next, I also removed all of the cplex code and tested with just the 3rd party application code. I was able to query my redis server no problem!
I then attempted to add back the 3rd party libraries and include the CPLEX code as you suggested, now making sure to copy/move all of the required shared libraries into the run-time enviroment. However, I am now getting a System Error when trying to connect to redis.
Here is the list of shared libraries I need:
- linux-vdso.so.1 (0x00007ffd5896e000)
- libhiredis_cluster.so.0.7 => /usr/lib/libhiredis_cluster.so.0.7 (0x00007fef098fb000)
- libhiredis.so.1.0.3-dev => /usr/lib/libhiredis.so.1.0.3-dev (0x00007fef098e6000)
- libhiredis_ssl.so.1.0.3-dev => /usr/lib/libhiredis_ssl.so.1.0.3-dev (0x00007fef098e1000)
- libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fef0984f000)
- libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fef09566000)
- libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fef09545000)
- libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fef0953e000)
- libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fef093ba000)
- libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fef09237000)
- libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fef0921d000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fef0905c000)
- /lib64/ld-linux-x86-64.so.2 (0x00007fef09922000
if you think there is one which would be incompatible with CPLEX please let me know, but I believe the issue now lies with linking the 3rd party library.
Thank you for all of your help!
#DecisionOptimization#Support#SupportMigration