Ask Your Question

Revision history [back]

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 clib source and tried to compile it also. For this i am doing the steps in this tutorial: http://www.linuxfromscratch.org/~thomasp/blfs-book-xsl/general/glib2.html

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?

P.S. I suspect that i need to export a variable before running the cmake3 command. Maybe a variable that is used by CMakeLists.txt.

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 clib glib source and tried to compile it also. For this i am doing the steps in this tutorial: http://www.linuxfromscratch.org/~thomasp/blfs-book-xsl/general/glib2.html

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?

P.S. I suspect that i need to export a variable before running the cmake3 command. Maybe a variable that is used by CMakeLists.txt. CMakeLists.txt.

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/~thomasp/blfs-book-xsl/general/glib2.html

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?

P.S. I suspect that i need to export a variable before running the cmake3 command. Maybe a variable that is used by CMakeLists.txt.