LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 11-01-2008, 01:19 AM   #1
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Rep: Reputation: 15
Unhappy What is the pkgconfig file?


Hello,

I am really having a hard time with a few installations. I'm trying to install cairo-png, libxml2 (I think this is installed), rddtool and ultimately Smokeping. Unfortunately, for me (in a way), I was put in a precarious position overseeing some Linux machines for work. I would love to learn, but I was abruptly put into the position. I'm not a ninja when it comes to Linux unfortunately.

Here it is: I have no idea what the pkg-config file is or how I would set the variable for some of these installs. Below are some of the errors I'm getting when I try to install. First I tried installing RDDtool from this page:

http://oss.oetiker.ch/rrdtool/doc/rr...en.html#___top

I get to this step.

Quote:
./configure --prefix=$RDD_INSTALL_DIR && make && make install
I used RDD_INSTALL_DIR instead of INSTALL_DIR from previous step. I'm not sure if that matters when setting the variable. When I execute it, I get WARNINGS about cairo-png, cairo-svg, cairo-pdf.pc, cairo-ps.pc, cairo-ps, pangocairo.pc, pangocairo, ibxml-2.0.pc and libxml-2.0. In each WARNING, it tells me to configure the PKG_CONFIG_PATH variable. Do I do that for every warning?

Quote:
* I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
configure: WARNING:
Quote:
* I could not find a working copy of libxml-2.0. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libxml2 and its header files. If
you have not installed libxml-2.0, you can get it either from its original home on

http://xmlsoft.org/downloads.html

You can find also find an archive copy on

http://oss.oetiker.ch/rrdtool/pub/libs

The last tested version of libxml-2.0 is 2.6.31.

LIBS=-lm
LDFLAGS=
CPPFLAGS= -I/usr/include/libxml2
When I check the config.log, it's not much help. It's all in "Greek." I think I installed the libxml2 components correctly; I also created a symlink in /opt/libxml2/:

Quote:
rddlib -> /opt/libxml2/libxml2-2.6.31/
I'm not sure how to use the CPPFLAGS option for the ./configure and if I need to create PKG_CONFIG_PATH variables for EVERY WARNING that was listed when trying to install RDDtool (viz, cairo-png, cairo-svg, cairo-pdf.pc, cairo-ps.pc, cairo-ps, pangocairo.pc, pangocairo, ibxml-2.0.pc and libxml-2.0). Sorry for the list.
 
Old 11-01-2008, 01:39 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
"pkgconfig" provides some configuration information about software; it isn't supported by all software, but for the ones that do support it, if you use a pre-built package you usually only get the config information if you install the corresponding "dev" package for it. Installing the 'dev' package is required if you wish to link to that software anyway.
 
Old 11-01-2008, 09:52 AM   #3
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Hello,

I still don't know how that will help me set up RRDtool. What devices do I need to install? It didn't say anything about installing any devices. I'm confused.
 
Old 11-01-2008, 04:01 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I never said anything about devices. The "dev" packages are the development packages for the libraries you've installed. For RRDtool for example, you will need to install headers for:

libc6
libfontconfig1
libpixman-1
libpng12
libx11
libxcb-render-util
libxcb-render
libxcb1
libxrender1
zlib1g
 
Old 11-02-2008, 01:17 AM   #5
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pinniped View Post
I never said anything about devices. The "dev" packages are the development packages for the libraries you've installed. For RRDtool for example, you will need to install headers for:

libc6
libfontconfig1
libpixman-1
libpng12
libx11
libxcb-render-util
libxcb-render
libxcb1
libxrender1
zlib1g
Thank you for your reply.

Sorry, when I saw dev I was thinking devices. How do I install the headers?
 
Old 11-02-2008, 01:04 AM   #6
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You'll have to use your package manager to search for the files which provide the headers for each library. Usually it's the same package name with "-dev" or "-devel" or something like that.
 
Old 11-03-2008, 07:51 PM   #7
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Hello pinniped,

I still don't follow. Am I querying RPM for this?
 
Old 11-03-2008, 08:06 PM   #8
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
RPM should be able to help you find what you need; even if you only searched for 'cairo' it should show you the cairo library as well as the development files.
 
Old 11-04-2008, 11:59 AM   #9
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Here is my result:

Quote:
[root@happv ~]# rpm -qa | grep cairo
cairo-1.2.4-2.el5
pycairo-1.2.0-1.1
[root@happv ~]#
When you mean header do you mean the part of the file that begins with the "bang?"

Quote:
#!/bin/bash
If I were creating a Bash Script, I would add this? If so, how do I know which files to modify?
 
Old 12-07-2008, 11:38 AM   #10
adityo13
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Smile hi there

i have the same error when i am trying to install rrd tools, and i try this

yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

it's fixed my problem
 
Old 01-07-2009, 09:05 AM   #11
DerekTom
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by adityo13 View Post
i have the same error when i am trying to install rrd tools, and i try this

yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

it's fixed my problem
Same error here. Thank you it fix my issue.
After that you also need to create you variable

[root@host01 ~]# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PKGCONFIG! lazybowel Linux - Software 3 03-27-2007 03:42 AM
help with pkgconfig slzckboy Slackware 5 02-12-2006 04:36 AM
problems with pkgconfig cloudnyne132 Linux - Software 1 11-08-2004 10:13 PM
pkgconfig issues garretwp Linux - Software 3 04-09-2004 09:36 AM
pkgconfig TechHarper Linux - General 2 11-10-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration