Linux - Software This 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.
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.
|
 |
03-18-2004, 03:29 AM
|
#1
|
Member
Registered: Oct 2003
Posts: 176
Rep:
|
need help installing glib 2.4
I have glib 1.2 installed when I setup my rh9. now I need to install gtk+-2.4.0 which require glib-2.4.0, pango-1.4.0, and atk-1.6.0. after I finish installing glib 2.4.0 I try to install pango and atk. It keep telling me that it require glib 2.4.0 or better. Do I need to get rid of the glib 1.2 first to make it reconize it?
|
|
|
03-18-2004, 07:47 AM
|
#2
|
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014
Rep:
|
Quote:
Do I need to get rid of the glib 1.2 first to make it reconize it?
|
I don't think because if you do that you'll break all applications which need glib1.2 library to run. Try ./configure --help, it may indicate an option like --with-glib=/path/wher/glib/is
|
|
|
03-18-2004, 08:10 AM
|
#3
|
LQ Newbie
Registered: Mar 2004
Posts: 8
Rep:
|
Maybe the problem is that glib-2.4.0 is not in the library-cache yet. When programs require a library they look it up in a file to see whether a specific library is available on the system.
Manipulating and updating of the cache can be done with the ldconfig command.
You can run 'ldconfig -p | grep glib-2.4.0' to check whether glib-2.4.0 is in the cache. If it doen't return any line, rebuilding your cache file can be the solution. In order to rebuild the cache run 'ldconfig', without any params.
Most of the time ldconfig is run by a package after installing, but sometimes it is omitted for reasons i don't always understand. Maybe someone knows why....?
|
|
|
03-18-2004, 11:26 AM
|
#4
|
Member
Registered: Oct 2003
Posts: 176
Original Poster
Rep:
|
ok i'm confuse, right now i'm at doing the atk-1.4.0 and I get this message when i'm doing the configure..
Quote:
*** 'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.2.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.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
|
huh?
got it! had to put /usr/local/lib in the ld.so.conf
Last edited by ziggie216; 03-18-2004 at 11:56 AM.
|
|
|
04-13-2004, 09:42 PM
|
#5
|
Member
Registered: Oct 2003
Posts: 49
Rep:
|
I tried and I'm still getting the same errors
Any Idea?
|
|
|
10-19-2004, 12:02 PM
|
#6
|
LQ Newbie
Registered: Oct 2004
Posts: 1
Rep:
|
hi,
i faced the exact same problem of glib-2.4.0 not being detected.
i tried the following like
1. during installation of glib-2.4.0, i typed "./configure --prefix=/usr", doesn't work
then as i read my error log, there is another earlier error requiring font-config, so in the end, i tried the following and it worked.
- use search files to look for fontconfig
- if search file says no database, go to command prompt and type "updatedb"
- look for the most recent directory containing fontconfig
- note down the directory, then at command prompt type the following
PKG_CONFIG_PATH="/usr/lib/pkgconfig"
export PKG_CONFIG_PATH
pango-1.4.0 installation was successful after i typed the above.
subsequent problems arises when i tried installing gtk+-2.4.0, and it says pango-1.4.0 not found, pango-1.2.1 detected instead, so i did the same procedure...
search for pango-1.4.0, then note down the most recent directory...
PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib:/home/updates/pango-1.4.0"
export PKG_CONFIG_PATH
in this case, both the "/usr/local/lib" and "/home/updates/pango-1.4.0" showed up in the search results, and the latter is the directory i untar-ed all my gtk+ dependencies....
gtk+-2.4.0 installation was successful in the end, hope this helps.
|
|
|
All times are GMT -5. The time now is 10:53 AM.
|
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
|
|