LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing cairo? (https://www.linuxquestions.org/questions/linux-newbie-8/installing-cairo-409931/)

lilili 01-31-2006 04:50 AM

installing cairo?
 
hi
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
Thank You

bathory 01-31-2006 05:49 AM

What is the output of:
Code:

pkg-config --modversion fontconfig
If it's nothing then you have to define PKG_CONFIG_PATH. Find the directory where fontconfig.pc and/or freetype2.pc is located and then before ./configure run:
Code:

export PKG_CONFIG_PATH=/path/to/directory:$PKG_CONFIG_PATH

lilili 01-31-2006 01:01 PM

Thanks, I will give it a try.
I thought that when you install something, it will autocatically update your pkg-config

bathory 01-31-2006 03:54 PM

Quote:

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.

lilili 01-31-2006 04:27 PM

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 ?
Thank You

bathory 01-31-2006 04:49 PM

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.

lilili 01-31-2006 07:55 PM

Hi
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.
Thank You

lilili 01-31-2006 09:38 PM

Thank You , I finally can install this cairo in my machine, but now when I try to install gtk2.8.11, I have the same problem as this eventhough I already export like you said

bathory 02-01-2006 01:59 AM

If you have installed all the required libraries for building gtk in /usrllocal/lib then you should use:
Code:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
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.

lilili 02-01-2006 12:19 PM

Thanks, I will try that


All times are GMT -5. The time now is 10:04 AM.