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!
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 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:
./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
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.
"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.
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.
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:
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:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.