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.
"*** 'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.0.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"
when i try to install xchat i get the above error after running ./configure
i have 2 glibs installed version 2.0 and 2.4.0, pkg-config is alredy updated, but after reading some pots i executed ( without thinking ) some commands like: xport LD_LIBRARY_PATH=/usr/local/lib, ldconfig etc... and i got this...
checking for GLIB - version >= 2.0.3... 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: "Cannot find glib"
i'm now totally lost and i would be happy if someone helped me out on this...
First, distribution "Linux" doesn't really help at all. You should change that in your profile.
If you wan't two glibs installed thats okay, but beware if you want to link against certain ones you are going to have to manipulate everything to force the compiler to ignore one or the other. The other problem this creates is at runtime you have to manipulate the linker to force it to find the right library to links against (this is where LD_LIBRARY_PATH comes in).
In short, the way I personally prefer is if you want an updated lib that is part of the base system, upgrade that lib instead of installing a new one in /usr/local
If you really want to use both glibs though, go with this:
glib is usually installed in /usr on most distros (most that I have used or tried out anyway), so to completeley replace the old glib, you would need to do
$./configure --prefix =/usr
Then also do as root
before trying to compile anything that checks for glib.