glib and gtk issues
I'm trying to install gtk++ 2.12.16. I successfully installed Pango, and glib-2.14.5 seemed to install correctly, but when I try to ./configure gtk, it comes up with this:
Code:
*** 'pkg-config --modversion glib-2.0' returned 2.14.5, but GLIB (2.12.12) Perhaps someone can point me in the right direction on this or tell me what to do? Ideally, I'd like to learn as much as possible in this process. Actually knowing what I did wrong, if anything, and why the solution is the solution, would be ideal. I'm on slackware 12.0, which I installed earlier today. Note: The whole reason I'm updating is because when trying to use zenmap (the GUI version of nmap) I get dependency errors indicating the version of GTK I have installed it too old. |
Hi Yawgm0th
I presume you searched first for newer versions of GLib, Pango and gtk+ at a Slackware repository site. As I don't use the Slackware distro, I don't know if they provide upgrades/updates for their packages. If it's not the case and you definitely have to compile yourselves the newer versions, some precisions about exactly what you've done are necessary. Quote:
Because as far as I can see, the last stable gtk+ release is 2.12.8, for pango it should be 1.18.4, and for glib 2.14.6 . Take care to choose stable versions not development releases. Can you tell also if you want to replace the old versions with the new ones or if you want to keep the old ones in place ? 2) Can you precise where you installed pango and glib ? You can tell the options you gave to the configure script for each of them. 3) Can you give the results of the commands, logged in as the user when you tried to compile gtk+ (should not be root) : echo $LD_LIBRARY_PATH cat /etc/ld.so.conf echo $PKG_CONFIG_PATH Quote:
And for the configure script to find and use the right versions, you need to have the right paths in the PKG_CONFIG_PATH variable. All these precisions are necessary to find a good solution to what you want to get. |
Quote:
Quote:
Quote:
Quote:
The second gives me: Code:
/usr/local/lib Code:
/usr/local/lib/pkgconfig:/usr/lib/pkgconfig |
1) You didn't say the pango version but I presume it is the last one from the gtk+ site. There is a newer gtk+ release, but it's not available at the gtk+ site, which is not very up to date.
You will find better updated source tarballs at the GNOME site. 2) In the INSTALL file you can read : Quote:
But I think this can be good enough presently, because in that way you don't risk to mess up your original installation, which stays intact. So this can stay like that presently. 3) As I can see, you seem to have the good paths in the /etc/ld.so.conf file and the PKG_CONFIG_PATH variable. So what you can do now is first read 'man ldconfig' and run it without any argument, under root login. You can read also the output of './configure --help'. Then you can try to configure/compile/install gtk+ again without changing anything of what you've done before. You didn't say if you were logged in as a user or as root, but it is recommended not to be root to run the configure script and the 'make' command, but only to install the compiled program with the 'make install' command. After that you have to run the 'ldconfig' command for a new package with shared libraries in it. Normally that should work and you will be able to compile the zenmap package you want to use. |
All times are GMT -5. The time now is 10:40 AM. |