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.
Before I tried to compile GTK+-2.2.4 I had compilied atk-1.2.4 , glib-2.2.3 , pango-1.2.5 . After I had finished to compile all and I started to compile GTK+, the configure script gave an output that it didn't find the direction of the 3 files.
I had removed all and started to compile the new version (gtk+-2.4 , atk-1.6 , glib-2.4 , pango-1.4). At first I had compiled Atk and Glib, and when I ran Pango's configure script, it gave an output -
Code:
checking for GLIB - version >= 2.4.0... 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.4.0 or better is required. The latest version of ***
Glib is always available from ftp.gtk.org/.
I tried to compile few times again - Glib succeeded and Pango still gave the fail message.
I think it may be the order you did them in, but I'm probably wrong as there are so many things that can go wrong. The order is important because if you build atk before glib it will be linked against some other glib you already have installed. You will may have some parts of glib-2.2.3 installed as part of Gnome or whatever. If you delete them whatever is linked with them will stop working. Do you need to install these things in system wide places? You may find it safer to install them in your home folder, that way you won't break Mandrake. Before you start, define three important variables
and install them in the order glib-2.4, atk-1.6, pango-1.4,gtk-2.4.
It may take awhile to work past the problems but once you can install them in tmp in your home folder it should be safe to try installing them as root in a system wide place like /opt that won't break Mandrake.
I had compiled glib-2.4 , atk-1.6 and when I compiled pango-1.4, I get -
Code:
checking for GLIB - version >= 2.4.0... 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.4.0 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
Thanks! I compiled GTK like you said and it worked, however, what will be happen when a software like xChat need GTK's librayes. Will be xChat find automaticlly the librayes or I need to give a special parameters?
If you need to compile a program against those libraries just set those variables before you compile it. It's possible that you may need to set the LD_LIBRARY_PATH before you run whatever it is. I'm not sure.
Originally posted by Andrew Benton I think it may be the order you did them in, but I'm probably wrong as there are so many things that can go wrong. The order is important because if you build atk before glib it will be linked against some other glib you already have installed. You will may have some parts of glib-2.2.3 installed as part of Gnome or whatever. If you delete them whatever is linked with them will stop working. Do you need to install these things in system wide places? You may find it safer to install them in your home folder, that way you won't break Mandrake. Before you start, define three important variables
and install them in the order glib-2.4, atk-1.6, pango-1.4,gtk-2.4.
It may take awhile to work past the problems but once you can install them in tmp in your home folder it should be safe to try installing them as root in a system wide place like /opt that won't break Mandrake.
I try this and compiling the glib-2.4 getting erro: libtool: link: cannot determine absolute directory name of `~/tmp/lib'
make[3]: ** [libcharset.la] Erro 1
make[3]: Leaving directory `/home/matcouto/Arquivos/arquivosdesys/glib-2.4.0/glib/libcharset'
make[2]: ** [all-recursive] Erro 1
make[2]: Leaving directory `/home/matcouto/Arquivos/arquivosdesys/glib-2.4.0/glib'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/home/matcouto/Arquivos/arquivosdesys/glib-2.4.0'
make: ** [all] Erro 2
What's wrong ?
PS.: I din't had the dir ~/tmp/bin then i add...
I made the same error as the original poster - compiling Atk first, then Glib, and getting the Pango error. How can I undo what I did, so to do it again correctly?
Well there's three ways you can fix it. One is to compile it with the original options
./configure --(options)
make
but then instead of make install do
make uninstall
Not everything supports make uninstall so plan B is to compile it and install it in a temporary folder in your home folder with
./configure --prefix=/home/user/tmp
that will show you what was installed and where it was installed. So if you installed it --prefix=/usr, the things that you've just put in /home/user/tmp/bin will also be in /usr/bin, the files in /home/user/tmp/lib will also be in /usr/lib. That way you can go through and remove only the files that were installed as you'll know what to look for. If you didn't specify --prefix= the default is --prefix=/usr/local. When you're done you can delete the temporary folder in your home.
The third option is simply to do it again in the correct order and reinstall over the old files, which should work, but it may not.
I think it's dangerous to install new things like glib and gtk on a system wide basis as they may interfere with what's already installed and cause problems with other applications. It's safer to not become root and just play with things in your home folder. I used to be more reckless when I used Mandrake as it was easy to spin the disks and reinstall so you weigh up the options yourself.
Hey I was having trouble installing pango but i found a way to do it. Took me a while but i got it. Dont install anything in a temp folder, let it install on its own. These are the setting for some varibles that made Pango work $PKG_CONFIG_PATH=" /usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig"
$LD_LIBRARY_PATH= "/usr/local/lib"
$LDFLAGS ="-L/usr/local/lib"
I hope this helps, you would not believe how long it took me to do all that!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.