Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I untarred xmms, and when i type ./configure, a long process log comes up, which ends with the following:
checking for glib-config... no
checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***
Sure enough, I looked at the xmms readme file, and it says gtk/glib 1.2.2 or better is required to install xmms. Does anyone know where I can obtaint this? Also, I am a complete newbie, so could you please explain the installation procedure. Finally, do I have to undoe any og the installatio process already done on xmms in order to make things work?
Well I tried to install gtk, but ran into more problems upon inputing the ./configure command. Here is what i got:
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pan go >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variabl e if your libraries are in a nonstandard prefix so pkg-config can find them.
1. What "path" is this message referring to?
2. What should i do about this?
I'm having a similar problem trying to install GTK2, something to do with the PKG-CONFIG-PATH environment variable thingy.
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pan
go >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variabl
e if your libraries are in a nonstandard prefix so pkg-config can find them.
Lots of (very helpful people) have been suggesting various commands to type in to fix the problem, but I was wondering if someone could explain how the whole path variable thing works and what it does, I prefer to understand the problem before I fix it. Is the PKG-CONFIG-PATH environment variable a file? Where is it located? What information does it hold and what programs/commands use that information? As far as I can tell something is looking at the PKG-CONFIG-PATH for something and not finding it, what is looking and what is it looking for? How is it related to the pkg-config package?
I've been installing various packages (pkg-config, glib as required by GTK2) but they aren't found when I run the configure file for GTK2, is this because I've installed them in a non-standard directory as suggested by the error message above? If I extracted pkg-config and glib to the /opt directory then went into their respective directories and ran ./configure, make, install, where would the packages install to, a default directory or to their current directory?
Finally, what would I do to fix this problem? Do I need to open up PKG-CONFIG-PATH and add something, or would I use the command prompt in some way?
Please bear in mind that I am a noob, but that I would appreciate a good explanation of why I recieved the error message I got. Any help given would be very much appreciated (big ups to the gurus out there) - cheers,
OK I found some info on linux.org about environment variables and stuff and am sort of understanding it a bit more, not quite sure what the PKG-CONFIG-PATH="/usr/local/lib/pkgconfig" does and what the export PKG-CONFIG-PATH command does, but I tried them anyway with no success. I get an error telling me that there is no such file or directory, but when I cd into the directory, pkgconfig is there. I also tried the commands using /usr/local/bin as there are some pkgconfig things there aswell, but that didn't work either.
Is PKG-CONFIG-PATH meant to be an environment variable of BASH? With /usr/local/lib as it's value? Is that what I'm meant to be trying to make?
If I echo $PATH, I don't get /usr/local/lib listed, should it be? Or am I on the wrong path (pun unintended but rather apt!)?
Bah silly me, I was typing PKG-CONFIG-PATH instead of PKG_CONFIG_PATH.
Still didn't help much though, I did the whole PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" and that worked, so I did the export PKG_CONFIG_PATH and that worked so I went into the GTK2 directory and ran ./configure but it still gave the same error..
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]]
pkgconfig has a directory containing .pc files that hold information about the location of various bits of various libraries, I can see that directory and the files in it, so I know it exists, I've set the PKG_CONFIG_PATH environment variable to /usr/local so pkgconfig should be able to find it's .pc files, but it doesn't