LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-26-2018, 08:25 AM   #1
intmail01
Member
 
Registered: May 2013
Posts: 91

Rep: Reputation: Disabled
Version issues. Installed Glib2 not recognised by the system and apps (gimp, gegl)


Version issues. Installed Glib2 not recognised by the system and apps (gimp, gegl)
-------

Hi,

There is an error during ./configure process when building gimp-2.10.8
The process requires a new version of Glib2. My linux slackware 14.2 use old one Glib2-2.46.2

After removing the old version Glib2-2.46.2, I compiled and installed the last new release 2.58.2 but the process perists and shows an error:

Code:
- Error: missing dependency glib >= 2.54.2
      *** Test for GLIB failed
The same case appear when building gegl-4.12 during ./configure process while the old Glib2 have been removed and the last version are installed:

Code:
./configure: line 18273: syntax error near unexpected token `$GLIB_REQUIRED_VERSION,'
./configure: line 18273: `AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :,'
I did 'ldconfig' at the end of compilation but no effect.

What to do for the system to recognise the new Glib2 because it is an essential library for many graphical application ?
 
Old 12-26-2018, 12:14 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Maybe glib2 was not properly installed. Assuming you installed a 64 bit Slackware, please post the output of this command:
Code:
grep Version /usr/lib64/pkgconfig/glib-2.0.pc
 
Old 12-26-2018, 01:50 PM   #3
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Maybe glib2 was not properly installed. Assuming you installed a 64 bit Slackware, please post the output of this command:
Code:
grep Version /usr/lib64/pkgconfig/glib-2.0.pc
How to recognize that it was not installed properly ?

Finally I re-install the old Glib2-2.46.2 because some applications like firefox cant run with the new version.

My system is a 32bits. The contents of /usr/local/lib/pkgconfig/glib-2.0.pc are bellow.
Note that the package installer of slackware do not restore the old version number. Strange thing.

Code:
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

bindir=${exec_prefix}/bin
glib_genmarshal=${bindir}/glib-genmarshal
gobject_query=${bindir}/gobject-query
glib_mkenums=${bindir}/glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.58.2
Requires.private: libpcre
Libs: -L${libdir} -lglib-2.0 
Libs.private: -pthread  -lpcre  -liconv  
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
 
Old 12-26-2018, 02:02 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by intmail01 View Post
Note that the package installer of slackware do not restore the old version number. Strange thing.
Nothing strange. Slackware doen't fiddle with /usr/local at all. Check /usr/lib/pkgconfig/glib-2.0.pc instead

That's also probably why gimp and gegl didn't find the version of glib2 that you built. They do not look in /usr/local by default either.
 
Old 12-26-2018, 03:25 PM   #5
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Nothing strange. Slackware doen't fiddle with /usr/local at all. Check /usr/lib/pkgconfig/glib-2.0.pc instead

That's also probably why gimp and gegl didn't find the version of glib2 that you built. They do not look in /usr/local by default either.

bash-4.3# cat /usr/lib/pkgconfig/glib-2.0.pc

Code:
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.46.2
Requires.private: 
Libs: -L${libdir} -lglib-2.0 
Libs.private: -pthread      
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
 
Old 12-26-2018, 03:46 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
This shows that the 2.46 version was properly reinstalled.

However the version 2.58.2 that you installed manually will stay forever, unless and until you remove it with "make install".

But no software will use it, unless you tell it where to to find this "alternate" glib2 when running ./configure, usually setting some environment variable. ./configure --help tells you which one.

This is one of the reasons why it's always better to make and install a Slackware package than just do a ./configure && make && make install. The Slackware tools installpkg, removepkg, upgradepkg know nothing about what you installed manually.
 
Old 12-27-2018, 01:43 AM   #7
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
This shows that the 2.46 version was properly reinstalled.

However the version 2.58.2 that you installed manually will stay forever, unless and until you remove it with "make install".

But no software will use it, unless you tell it where to to find this "alternate" glib2 when running ./configure, usually setting some environment variable. ./configure --help tells you which one.

This is one of the reasons why it's always better to make and install a Slackware package than just do a ./configure && make && make install. The Slackware tools installpkg, removepkg, upgradepkg know nothing about what you installed manually.
Thank you for your help.
"make uninstall" works to remove the library.
What are the good parameters to configure that it will be seen and usable for the system ? (the standard method because this case may appear several times with other source code)

Last edited by intmail01; 12-27-2018 at 01:52 AM.
 
Old 12-27-2018, 02:03 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by intmail01 View Post
What are the good parameters to configure that it will be seen and usable for the system ? (the standard method because this case may appear several times with other source code)
There is no standard method, you have to read carefully the output of ./configure --help. As an example for gegl:
Code:
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
Some knowledge about compilation and linking helps.

But again, my advice is to not install stuff manually in non standard location, unless that is needed e.g. to have two versions of a program or library and symbolic links can't be used. Even then it's better to make a package that can be handled by the Slackware package tools.

Last edited by Didier Spaier; 12-27-2018 at 02:04 AM.
 
Old 12-28-2018, 04:59 PM   #9
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
I found a successfull method to build and install a new version of Glib. The new library can be seen and will be used by applications like gimp :

1- ./configure --prefix=/usr/ ;
2- make ;
3- Remove the old version provided by Slackware: removepkg glib2;
4- make install ;

The safe way is to do jobs under console command line not under XWindow interface.

Thanks for all !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
colord-1.4.3 requires glib2-2.5.6 or greater but slackware 14.2 only ships with glib2-2.46.2 nimbusdin Slackware 8 08-19-2018 03:43 PM
LXer: GIMP Seeks Crowd-funding Model For GEGL Components LXer Syndicated Linux News 0 11-25-2012 10:42 PM
LXer: OpenCL Is Coming To The GIMP Via GEGL LXer Syndicated Linux News 0 08-16-2011 11:30 AM
Gegl not being detected? GIMP 2.5.2 compile attempts. Aape Linux - Newbie 4 08-08-2008 10:04 AM
install gimp2.5 in /opt/gimp-2.5 complains about gegl when it does indeed exist crazywizzard Linux - Software 2 05-08-2008 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration