Install tshark 3.2 from sources with glib 2.32 compiled from sources
I am trying to install tshark 3.2.3 from sources on a centos 6.10 server and i tried the steps in the tutorial: https://tshark.dev/setup/install/
However i have trouble at the cmake3 step:
cmake3 -DBUILD_wireshark=OFF /opt/wireshark-3.2.3/
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find GLIB2: Found unsuitable version "2.28.8", but required is at least "2.32.0" (found /usr/lib64/libglib-2.0.so)
Call Stack (most recent call first):
/usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindGLIB2.cmake:106 (find_package_handle_standard_args)
CMakeLists.txt:1023 (find_package)
The problem is that CentOS 6.10 is really old and i can not install CLIB 2.32 using yum or the rpms. So i downloaded the glib source and tried to compile it also. For this i am doing the steps in this tutorial: http://www.linuxfromscratch.org/~thom...
wget http://ftp.gnome.org/pub/gnome/sources/glib/2.32/glib-2.32.2.tar.xz
tar xvf glib-2.32.2.tar.xz && cd glib-2.32.2
./configure --prefix=/opt/glib-2.32
make
make install
Glib is installed in /opt/glib-2.32 now but how do i tell cmake3 to use the compiled glib 2.32 instead of the old one installed on the server?
(shooting in the dark here)
You might look through FindGLIB2.cmake to see how the search is done.
Example on stackoverflow using HINTS. Not sure if PATHS are processed in order. Maybe put or symbolic link your library under a directory before
/usr/lib
. (may have to do same with include files)