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.
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135
Rep:
Please!!!! Help me with Glib 2.6.1 installation
I'm trying to install gtk+ 2.6.1 and it ask me for glib, atk and pango. I'd installed glib 2.6.1 but when i install pango it gives me this error:
checking for GLIB - version >= 2.5.7... 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.5.7 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
I'd installed glib by this way:
$ configure --prefix=/usr
$ make
# make install
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135
Original Poster
Rep:
I'd tried with ldconfig, but nothing happens. How can i use this command?? I put it in the command line and run it. I think it's something like this "/folder_location/ ldconfig". But i don't know the location of glib.
What's the output of echo "LD_LIBRARY_PATH" ? If it isn't "/usr/local/lib:/lib:/usr/lib:/usr/X11R6/lib", the following commands (as root) may fix your problem.
Re: Please!!!! Help me with Glib 2.6.1 installation
Quote:
Originally posted by Lier I'm trying to install gtk+ 2.6.1 and it ask me for glib, atk and pango. I'd installed glib 2.6.1 but when i install pango it gives me this error:
checking for GLIB - version >= 2.5.7... 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.5.7 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
I'd installed glib by this way:
$ configure --prefix=/usr
$ make
# make install
I'm using SUSE 9.0
Thanks.
Do you have /usr/lib/pkgconfig in your PKG_CONFIG_PATH variable and /usr/lib in your LD_LIBRARY_PATH variable?
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135
Original Poster
Rep:
Yes, i have the two variable
The config.log show this:
configure:21613: checking for GLIB - version >= 2.5.7
configure:21762: result: no
configure:21795: gcc -o conftest -g -O2 -Wall conftest.c >&5
conftest.c:27:18: glib.h: No such file or directory
conftest.c: In function `main':
conftest.c:33: error: `glib_major_version' undeclared (first use in this function)
conftest.c:33: error: (Each undeclared identifier is reported only once
conftest.c:33: error: for each function it appears in.)
conftest.c:33: error: `glib_minor_version' undeclared (first use in this function)
conftest.c:33: error: `glib_micro_version' undeclared (first use in this function)
configure:21801: $? = 1
if your just exporting the LD_LIBRARY_PATH and not the PKG_CONFIG_PATH it will probably fail due to picking up the libraries out of /usr/local/include but using the headers elsewhere. ( which will give you undefined reference/symbol errors)
I don't know, it depends on where you installed glib to. technically:
PKG_CONFIG_PATH=/usr/lib/pkgconfig
won't do anything except overwrite the rest of the PKG_CONFIG_PATH the distro sets up and b0rking any chances you have of compiling anything.
so:
don't use LD_LIBRARY_PATH for what your doing. just make sure /usr/local/lib is listed as one of the directories in /etc/ld.so.conf and run ldconfig as root (which will eliminate the need for LD_LIBRARY_PATH in this example)
if your new glib is installed in the prefix /usr/local. what this does is set /usr/local/lib/pkgconfig to the FIRST directory pkg-config will search ( if you have an old glib in /usr this is why your running into problems, but we can get around that now but you will have to set LD_LIBRARY_PATH at runtime or the program will bail).
so try these and tell me:
1). where is the new glib at?
2). do you have an old glib that came with your system installed somewhere else?
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
This problem is easy to solve as I had the exact same problem. What you do is install GLIB to /usr, and install ATK and pango and GTK to /usr, assuming you are trying to install GTK.
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135
Original Poster
Rep:
Thanks "Micro420" but it doesn't work.
1) I think the new glib it's at "/usr/local/include/glib-2.0/glib"
2) I run "rpm -q glib" and it appears this: glib-1.2.10-482 (this one come with my distro)
I've tried to uninstall it but i don't know how. I write (as root) "rpm -e glib-1.2.10-482" but nothing happens, i think because of some programs that use the libraries
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135
Original Poster
Rep:
I think that "./configure" install glib in "/usr/local/include/glib-2.0/glib", and if i put "./configure --prefix=/usr" it's going to install glib in "/usr/include/glib-2.0/glib"
did you install glib-2.x ( your gonna need 2.6.0 at least for gtk-2.6 I think)?
glib-1.2.x is the older glib and has nothing to do with gtk-2.6 ( gtk-1.2.x uses glib-1.2.x).
look in /usr/local/lib/pkgconfig and see if there is a file name glib-2.0.pc or type this in a console/xterm:
Code:
pkg-config --cflags --libs --modversion glib-2.0
and post the output, then we will know if you have glib-2.x installed and where it is
Edit: make sure if glib-2.0.pc is in /usr/local/lib/pkgconfig to export that directory to your PKG_CONFIG_PATH before running the pkg-config command above:
when you use a prefix like "configure --prefix=/usr", /usr becomes the root of the installation. So for example, if you install gtk with a root of /usr, the libraries will be placed in /usr/lib, the executable (binary) files will go in /usr/bin, the header files will go in /usr/include, man pages in /usr/man, and so on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.