or-tools installation on CentOS

374 views
Skip to first unread message

Nikita Zubrilov

unread,
Jul 10, 2017, 10:42:14 AM7/10/17
to or-tools-discuss
I tried to use or-tools for Linux in CentOS 7, but had a lot of problems with dependencies (different gcc version, different libc version etc...)
For example "Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/solver/libs/libjniortools.so: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/solver/libs/libjniortools.so".
 
When tried on Ububtu 16.04 everithing was smooth, I needed to install only Java 8 to start working.
Did someone face the same problems?  Did someone tried to use or-tools on CentOS?

Thanks,
Nik

Laurent Perron

unread,
Jul 10, 2017, 10:59:47 AM7/10/17
to or-tools-discuss
Hi, 

Different linux distributions are not binary compatible.
You need to rebuild from sources.

Follow the instructions to build from sources. 

then

make python
make pypi_archive
cd temp-python<python_version>/ortools
python setup.py bdist_egg

will create the egg file for you to install.



Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nikita Zubrilov

unread,
Jul 10, 2017, 3:26:36 PM7/10/17
to or-tools-discuss
Thanks for your quick reply. 
My use case is loading libjniortools.so in java application and then use its functionality, so I basically need only 2 libraries libjniortools.so and libortools.so.
(In Windows I need only jniortools.dll).
Is your solution good for my case? I mean, after procedure you proposed, can I take only those 2 libraries and load them on ContOS from Java program?
Thank you! 
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages