Linux - Newbie This 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! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-15-2005, 07:23 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: Netherlands
Distribution: Suse 9.1/10
Posts: 29
Rep:
|
glib
before
"*** '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...
thanx
|
|
|
01-15-2005, 08:01 PM
|
#2
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH
that will force pkg-config to find 2.4 before 2.0
|
|
|
01-15-2005, 09:01 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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
$make
#make install
Then also do as root
#ldconfig
before trying to compile anything that checks for glib.
|
|
|
01-16-2005, 08:26 AM
|
#4
|
LQ Newbie
Registered: Jan 2005
Location: Netherlands
Distribution: Suse 9.1/10
Posts: 29
Original Poster
Rep:
|
tanx to both of you!
It all seems to work.
|
|
|
All times are GMT -5. The time now is 07:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|