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.
I had no problems with Pango and GTK+ in SuSE 8.1, but than I thought i should get my self the SuSE 9.1... donīt ask why!
Anyway, it doesn't matter if I so use GTK+2.5.x or 2.4.x still the same problem, this with "Can't link Pango, pango is needed to build!" some thing like that.. Though I know I can't install pango-1.2 because it gives errors... something with FreeType2.
But that's not my problem now!
The problem is that I NEED gtk+2.4 or higher to run some applications. I know the libpang* files exists.. but why can't it link... have searched the internet, but haven't find any answers that could help me
give us the actual error output be it for configure or make or whatever.
along with what's installed gtk+/pango from packages or whatever and what's being self compiled
Here comes the error output when Im doing the configure
Code:
checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org
I have seen others have the same problem... but how the hell are Im suppose to solve this, i have:
- GTK+2.5.0 , source. BIG PROBLEMS...
- Glib 2.4.7, source. No problems installing
- Pango 1.4.1 , source. No problems installing
- Atk 1.0.1, source. No problems installing
This is worth reading particularly the stuff about compile flags and PKG_CONFIG_PATH variables. My guess is you installed glib-2.4 in /usr/local (that's the default location) but compiled and linked pango against the glib-2.2 you already had installed in /usr. I would suggest you set these varibles before you compile pango-1.6, atk-1.8 and gtk-2.4. If you close the shell it will forget so reset these before you carry on or you will link against the wrong libraries again.
An alternative is to ./configure --prefix=/usr but the risk is that if you install over the libraries you have there already you will break a lot of things and end up having to reinstall everything. Avoid the gtk-2.5 series - it's the unstable development series.
Now I installed glib2 in /usr/local, but then when im on my way to install pango, i can't find glib2.
Why, because pkgconfig search in /usr/lib/pkgconfig after the glib-2.0.pc file, not in /usr/local/lib/pkgconfig.
How tha hell can I get this to work.. damn I had no problems with it on the SUSE 8.1, but large problems in 9.1 even if I do it exactly the same way as in 8.1.
garghr ... what to do... It makes me Insane soon ...
Originally posted by Andrew Benton So does that mean there's no glib-2.0.pc file in /usr/local/lib/pkgconfig? Perhaps you didn't install glib-2.4.7?
The thing is, there was a file in /usr/local/lib/pkgconfig, but the config script keept on seraching for the glib-2.0.pc file in /usr/lib, not in /usr/local/lib ..
Anyway, I got a bit tooo insane and now I try out an other dist. Let's see if I get the same problem now
Im not an expert on linux, can anyone tell me how I can solve this thing when I run ldconfig -v, I think thats why I can't install gtk+, because now ./configure works out just fine, but make gives errors on these files that ldconfig cannot stat
Code:
ldconfig: Cannot stat /opt/gnome/lib/libglib-2.0.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgsf-gnome-1.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgmodule-2.0.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgthread-2.0.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgobject-2.0.so: No such file or directory
I solved it.. The files existed, but they linked to wrong version number.. so I reinstalled the ones that I needed and now all is okey, except some weird thing with the sound... but that is an other thread!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.