or-tools java version 9 - how to get a version that works with glib 2.14

113 views
Skip to first unread message

himadri pal

unread,
Dec 2, 2021, 2:34:56 PM12/2/21
to or-tools-discuss
Hi There,
I was trying to run the or-tools java from a project and it runs fine in my Mac but when I try to run it on linux server running glib 2.12 version, it fails saying "GBLIB 2.16 not found".

I was trying to build it from source using the cmake, swig etc, that also failed in some step.

Would really appreciate if you could provide some guidance on how to get a version which works with glib 2.12?


Regards,
Himadri Pal

himadri pal

unread,
Dec 2, 2021, 2:36:35 PM12/2/21
to or-tools-discuss
error message is - GLIB 2.14 not found.
and the linux server where I need to run  - I did, `ldd --version`, it shows 2.12. So I need a version that works with glib 2.12

Laurent Perron

unread,
Dec 2, 2021, 2:37:47 PM12/2/21
to or-tools-discuss
You need to rebuild from source. 

--
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-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/d9e5777e-dd8a-470f-8b71-f8aab981b26cn%40googlegroups.com.

himadri pal

unread,
Dec 2, 2021, 2:50:26 PM12/2/21
to or-tools-discuss
Thanks for the response.
rebuilding on my Mac, did not work, I got some scip error. Also, do you suggest building it on the linux server, 
do you have any suggestions on how to let the make tool know use glib 2.12?

Laurent Perron

unread,
Dec 2, 2021, 2:52:29 PM12/2/21
to or-tools-discuss
Retry. It was fixed today

Laurent Perron

unread,
Dec 2, 2021, 2:53:15 PM12/2/21
to or-tools-discuss
You need to build on the target computer. 
Beware, you need a recent version of GCC to support c++17. 

himadri pal

unread,
Dec 2, 2021, 3:12:49 PM12/2/21
to or-tools-discuss
Thanks for your response again. I dont think I can install the prerequisite in the target computer because of permission issue.
Is there an equivalent library for java only, use and not using the c++ JNI calls internally?

Mizux Seiha

unread,
Dec 2, 2021, 3:22:36 PM12/2/21
to or-tools-discuss
May I ask which distro did you use to need a glib 2.12 ?

Also you may be interested on https://github.com/google/or-tools/issues/2520#issuecomment-825119882
i.e. using a Centos 7 + gcc-9 you may have a compiler with C++17 support but with GLIBC 2.17 and GLIBCXX 3.4.19

For glib 2.12 + C++17 compiler support seems tricky...

himadri pal

unread,
Dec 2, 2021, 4:09:03 PM12/2/21
to or-tools-discuss
thanks. I think I may have to drop the idea of using or tool given the environment constraint. distro is cents 6.9
Reply all
Reply to author
Forward
0 new messages