Passing two pkgconfig directories to configure gegl
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Passing two pkgconfig directories to configure gegl
Hi, I am currently trying to compile gegl. However it depends on two software artifacts that I installed in non standard directories: Glib and Babl. When I tried to compile I received
Quote:
checking for BABL... configure: error: Package requirements (babl >= 0.0.22) were not met:
checking for GLIB - version >= 2.16.1... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLIB 2.16.1 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
So I would like to know if there is a way to pass the directories of the two programs to configure something like
Thanks. I did a copy & paste on your command and received:
Code:
checking build system type... Invalid configuration `..': machine `..' not recognized
configure: error: /bin/bash ./config.sub .. failed
If I remove the final two points, I receive
Code:
checking for GLIB - version >= 2.16.1...
*** 'pkg-config --modversion glib-2.0' returned 2.17.0, but GLIB (2.24.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.16.1 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
which is a standard directory to search libraries, why he is not finding Glib? Should I put
Code:
/usr/lib
in ld.so.conf? I think it's useless because it's a standard directory that should be searched by default. So how I should modify LD_LIBRARY_PATH to solve the question? Is there another way to do it?
Thanks.
If I remove the final two points, I receive
checking for GLIB - version >= 2.16.1...
I put the 2 dots there, to show you that you may add other options after the ./configure if you like
Quote:
checking for GLIB - version >= 2.16.1...
*** 'pkg-config --modversion glib-2.0' returned 2.17.0, but GLIB (2.24.1)
You didn't say your distro, but since you have glib-2.24.1 installed, why do you want to downgrade to 2.16.1?
Quote:
why he is not finding Glib? Should I put
/usr/lib
So how I should modify LD_LIBRARY_PATH to solve the question? Is there another way to do it?
It's finding 2 different glib2 versions. If you omit the 2nd entry from PKG_CONFIG_PATH, it'll stop complaining.
Anyway, if you want to set LD_LIBRARY_PATH to something else, you can also prepend it to ./configure as you did with PKG_CONFIG_PATH
configure: error:
*** GLIB 2.16.1 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
and is more than that. Trying to install another program, when I issue a
Code:
./configure
I receive a
Code:
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: SDL >= 1.2.0 is required
However I do have:
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.11.3
/usr/lib/libSDL.so
<-snip->
So my system is with a serious library detection problem and I have no idea of how to solve it
You're still didn't say what your distro is, so we could be of better assistance..
Anyway, all these libraries exist in your system, but if you want to compile some software against them, you'll also need their development packages installed too.
So fire up your distro's package manager and install the development packages. Mind that they are usually end with -dev or -devel (e.g. zlib-devel for RHEL based distros, or zlib1g-dev for Debian based and so on)
You're still didn't say what your distro is, so we could be of better assistance..
Anyway, all these libraries exist in your system, but if you want to compile some software against them, you'll also need their development packages installed too.
So fire up your distro's package manager and install the development packages. Mind that they are usually end with -dev or -devel (e.g. zlib-devel for RHEL based distros, or zlib1g-dev for Debian based and so on)
I want to this from source, anyway, even if I wished, the support for my distro is long gone.
I want to this from source, anyway, even if I wished, the support for my distro is long gone.
What is your distro anyway?
If you want to compile S/W from source, you need to define PKG_CONFIG_PATH and LD_LIBRARY_PATH, since you install the needed libraries in non standard places
If you want to compile S/W from source, you need to define PKG_CONFIG_PATH and LD_LIBRARY_PATH, since you install the needed libraries in non standard places
How should I set LD_LIBRARY_PATH to try to solve the Glib 2.24 detection matter, since when I indicate the path to the version 2.17 it complains about the 2.24 being available, but when I ommit it in PKG_CONFIG_PATH, it will complain about Glib libraries not being present, even with their existance in /usr/lib? (and why configure doesn't detect them)?
How should I set LD_LIBRARY_PATH to try to solve the Glib 2.24 detection matter, since when I indicate the path to the version 2.17 it complains about the 2.24 being available, but when I ommit it in PKG_CONFIG_PATH, it will complain about Glib libraries not being present, even with their existance in /usr/lib? (and why configure doesn't detect them)?
Most of these libraries (glib2, zlib etc) should be already installed by your system under /usr/lib (or /usr/lib64 if running a 64bit distro). Check /etc/ld.so.conf for these directory among others.
If glib2-2.24 isn't installed in a standard location (i.e. not listed in /etc/ld.so.conf), find where it's installed and use that path in the following way:
Most of these libraries (glib2, zlib etc) should be already installed by your system under /usr/lib (or /usr/lib64 if running a 64bit distro). Check /etc/ld.so.conf for these directory among others.
If glib2-2.24 isn't installed in a standard location (i.e. not listed in /etc/ld.so.conf), find where it's installed and use that path in the following way:
I did the first export, only then I read the second export and so realised that it won't work because there isn't a glib2-2.24 dir (or anything like that). The libraries are scaterred in /usr/lib. So there isn't a pkgconfig for glib either.
I am thinking in removing all the glib libraries from /usr/lib temporarily, then run the configure and then put them back there. What do you think?
I did the first export, only then I read the second export and so realised that it won't work because there isn't a glib2-2.24 dir (or anything like that). The libraries are scaterred in /usr/lib. So there isn't a pkgconfig for glib either.
These are just examples to show you how to define the 2 env. variables (LD_LIBRARY_PATH and PKG_CONFIG_PATH) before compiling.
You still don't say your distro, or how you've installed glib2 and finished with "libraries scattered in /usr/lib".
As a dirty workaround, if you're sure you have only version 2.24.1 installed, you can manually edit /usr/lib/pkgconfig/glib-2.0.pc and change the version number.
Afterwards, to verify run the following command:
Code:
pkg-config --modversion glib-2.0
Quote:
I am thinking in removing all the glib libraries from /usr/lib temporarily, then run the configure and then put them back there. What do you think?
It won't work as glib2 is a dependency of the S/W you're trying to compile.
These are just examples to show you how to define the 2 env. variables (LD_LIBRARY_PATH and PKG_CONFIG_PATH) before compiling.
You still don't say your distro, or how you've installed glib2 and finished with "libraries scattered in /usr/lib".
As a dirty workaround, if you're sure you have only version 2.24.1 installed, you can manually edit /usr/lib/pkgconfig/glib-2.0.pc and change the version number.
Afterwards, to verify run the following command:
Code:
pkg-config --modversion glib-2.0
It won't work as glib2 is a dependency of the S/W you're trying to compile.
Sorry, I was going to tell my distro in the two last posts, but forgot. It is ubuntu 10.04. I didn't install glib2, it came with the system. There isn't /usr/lib/pkg-config, so I will need to do something else.
Sorry, I was going to tell my distro in the two last posts, but forgot. It is ubuntu 10.04.
It's way too old and of course unsupported (2012 EOL)!
You should upgrade ASAP to a newer distro first of all for security reasons and then because new S/W won't compile in ancient distros.
Quote:
I didn't install glib2, it came with the system. There isn't /usr/lib/pkg-config, so I will need to do
Mind that it's /usr/lib/pkgconfig (no dash "-" between "pkg" and "config").
It's way too old and of course unsupported (2012 EOL)!
You should upgrade ASAP to a newer distro first of all for security reasons and then because new S/W won't compile in ancient distros.
Mind that it's /usr/lib/pkgconfig (no dash "-" between "pkg" and "config").
I don't want to upgrade to a newer distro, since I like this one. Even If I wanted, while I can't solve this issue, I won't be able to do it (and even if I do solve it, I am still not sure if I could upgrade)
Frankly, security reasons are meaningless IMO and I already compiled some new software as long as I don't have a problem like this one.
Anyway, there isn't /usr/lib/pkgconfig. Need to find a way to tell pkg-config to not look at /usr/lib. Do you now a way
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.