Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ive been trying to compile GTK 2.6 for the last two hours Needs one package after the other!! So many dependencies! gah! But finally, it just keeps giving me
configure: error: Xft pango backend is required for x11 target
when I configured the pango thing it said
i ran xft-config --prefix and it said /usr/X11R6
am I missing something here?
aha! It usually helps to read the instructions! But just out of curiosity, i don't understand what setting that path will do. There is no /usr/X11R6/lib/pkgconfig directory anyways. agh this is too complicated >.<
I already have fontconfig installed!! IT was done by RPM, but it keeps saying pkg fontconfig not found.
Everything that uses glib, gtk, is now not working! How do i remove the stuff i compiled from source? I've tried reinstalling the rpm but that doesnt seem to work. As of five seconds ago, everything gives a segmentation fault. I think i need to delete everything with pango* in it and then retry the rpm. Is that safe?
or how do I get fontconfig to show up while compiling Pango?
What distro are you running ( need to know as far as package management is concerned).
since your runnin a rpm distro, the reason you don't have a /usr/X11R6/lib/pkgconfig directory is because you don't have the -devel package installed for X. You cannot compile against a library if you do not have the header files and pkg-config files.
As far as removing what you have compiled, go back to the source directories and as root do:
to remove them from your system then reinstall your original rpm's.
ah. Thanks. Im running suse 9, and I do have the X -devel package installed. I guess since it was installed by rpm it was ina different place? I saw the config file locate the X headers but..... o well. For future refrence, its not possible to install things 1/2 by rpm and 1/2 by source? So if you installed Pango by RPM, the GTK source configurer wouldnt see it?
remember that most (all?) rpm distro's split thier packages into seperate pieces. for example:
pango-1.8.0-i486.rpm is just the libraries themselves - what you need to run programs that depend on pango
pango-1.8.0-devel-i486.rpm is the files needed to compile against pango-1.8.0, but are not needed to use pango itself.
So to compile against an rpm package, you must have the corresponding -devel package for that particular library.
to understand why configure fails you need to know what it is looking for. In your example, for glib, gtk, atk, and pango ( as well as pretty much all the other gnome-2.x libraries) configure looks for pkg-config files like gtk-2.0.pc (which usually resides in /usr/lib/pkgconfig), or glib-2.0.pc, or in the case of Xft, xft.pc(which is located in /usr/X11R6/lib/pkgconfig ). You will only have the pkg-config files if you install the -devel packages for these libraries ( or for the case of xft.pc, you need the X11-devel package).
So, in short, you can mix rpm's and source as long as you have all the rpm packages needed to link and develop against the library/application.
If your installing by source, its a good idea to use something like checkinstall (or another rpm builder) or build the rpm manually then install it instead of "make install". When it comes time to upgrade later, it will make life much easier for you.