Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hello, i am trying to install rrdtool using ./configure and make and so on and so forth. The problem is this: i get this error message when i am running ./configure:
Code:
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... no
checking for pkg-config... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of freetype2. 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 libfreetype and its header files. If
you have not installed freetype2, you can get it either from its original home on
http://prdownloads.sourceforge.net/freetype/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of freetype2 is 2.1.10.
LIBS=-lpng -lz -lart_lgpl_2 -lm
LDFLAGS=
CPPFLAGS= -I/usr/include/libart-2.0 -I/usr/include/freetype2
----------------------------------------------------------------------------
configure: error: Please fix the library issues listed above and try again.
I went to the site and downloaded the file for freetype2, installed it using ./configure, make, make install and then make clean. But i get the exact same error here. I also had a few more library dependant issues, but i sorted them out looking them up and installing them using yum or downloading them from their corresponding sites.
Thanks in advance for all the help. An as usual, LQ rules!!!!!!
Since you've installed freetype from source using a plain ./configure, then the library is installed under /usr/local. You have to define the following env. variables before running ./configure for rrdtool:
The export part did not show any errors, so i guess that worked out fine. Now, how do i check on a FC4 installation if that other package is installed?
If i install pkg-config using ./configure, make, make install and make clean, do i have to export some other variables so that the rrdtool can find it? Or freetype2? I ask this because the INSTALL file specifies to install like that, so i guess i need to do the same steps so i can get the other tools to find it.
Ok, update here. i installed rrdtool with ./configure, make & make install, i didn't see any errors and it said it would install to /usr/local/rrdtool. I ran the cacti .rpm file to install it but it said it still requires rrdtool. How come? What am i missing?
I ran the cacti .rpm file to install it but it said it still requires rrdtool. How come? What am i missing?
I guess that the software you're trying to install is looking for the various utils of rrdtool you've installed. If it's installed under /usr/local/rrdtool, then you have to export another env. variable, the PATH, so that anyone can find those utils:
Code:
export PATH=/usr/local/rrdtoo/bin:$PATH
If it works you can add those export commands somewhere in your init scripts (or better in /etc/profile) to have them available anytime you restart your box.
I would've loved that to work, but it didn't. I did the export you suggested and it displayed the same error, that cacti needs rrdtool. It's really weird because that trick worked when attempting to install rrdtool, but not when trying the .rpm that installs cacti. Does it matter that i installed rrdtool using the ./configure and all of that instead of the .rpm way that Fedora likes so much? I don't think so, but i've been wrong many times before.
Dude, you rock, thanks for the help. I hope to get this working soon to get this monkey off my shoulders.
Since rpms are precompiled binaries, I guess that the rpm looks for rrdtool in a specific place. I suggest you to either install cacti also from source where you can specify the path to rrdtool, or use yum to install all the software from rpms resolving the dependencies problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.