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.
I try to install cairo but I have
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again: http://freetype.org/http://fontconfig.org
I already install freetype and fontconfig but it still gives me the same error
I thought that when you install something, it will autocatically update your pkg-config
You're quite right because the .pc files are created when you install software, but if you have not defined PKG_CONFIG_PATH, or if it's pointing to the wrong place, then they get copied in that wrong place and other applications cannot find and use them.
How to make sure when I install something, it will updated pkg-config correctly?
Is this done during the ./configure ?
export PKG_CONFIG_PATH=/path/to/directory:$PKG_CONFIG_PATH, so this will add the path to font config to my PKG_CONFIG PATH ?
Since Slack uses /usr/lib/pkgconfig as the directory where the .pc files are stored you should install those libraries using "./configure --prefix=/usr". This way anything goes under /usr, i.e. the libraries in /usr/lib, header files in /usr/include etc and the new .pc file for the newlly installed library in /usr/lib/pkgconfig, so it can be used for compiling other applications that depend to that lib.
You can take a look here to see what you can do if you have installed libraries in non standard places.
It seems that I have 2 seperate location for pkg-config
/usr/lib/pkgconfig and /usr/local/lib/pkgconfig
How can I combine these 2 together so during instalation pkgconfig will look on both these path.
Mind that the way you defined PKG_CONFIG_PATH (using export from command line) makes the env. variable valid only for the current session. If you logout and login again the definition is gone. You can use the export command in your /etc/profile so you don't have to define it every time you login.