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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-23-2007, 12:25 PM   #1
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
rrdtool complaining about freetype2


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!!!!!!

Last edited by trebek; 02-23-2007 at 12:34 PM.
 
Old 02-24-2007, 08:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Quote:
checking for pkg-config... no
You must also install pkg-config because of the above message, or if it's installed make sure it's in your PATH.
 
Old 02-24-2007, 10:46 AM   #3
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
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?

Thanks a bunch man, really.

Last edited by trebek; 02-24-2007 at 11:44 AM.
 
Old 02-24-2007, 04:29 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
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.
 
Old 02-24-2007, 06:48 PM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
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.
 
Old 02-26-2007, 01:56 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
  


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
bwm_tools-0.2.3/freetype2 Netsplit Linux - Newbie 2 04-09-2008 07:42 AM
Freetype2 problems..... eponymous Linux - Software 1 01-03-2007 02:02 PM
freetype2 - bytecode interpreter gusgorman Slackware 1 02-08-2006 12:00 AM
Rebuilding Freetype2 on Slackware 10.2 Toods Slackware 4 01-12-2006 07:46 AM
problem in Install freetype2 treotan Red Hat 1 12-23-2005 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:18 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