LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Issue when trying to ./configure RRDtool-1.2.23 (http://www.linuxquestions.org/questions/linux-software-2/issue-when-trying-to-configure-rrdtool-1-2-23-a-575337/)

lehumphr 08-07-2007 09:43 AM

Issue when trying to ./configure RRDtool-1.2.23
 
I have been following fairly detailed instructions while attempting to get NMIS set up on a Fedora 7 Server I have up and running.

When installign a required program called RRDtool. I encounter an error as follows.

Code:

Findr 3rd-Party Libraries
checking for art_vpath_add_point in -lart_lgpl_2... no
checking for pkg-config... pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libart-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 libart_lgpl_2 and its header files. If
  you have not installed libart-2.0, you can get it either from its original home on

    ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/

  You can find also find an archive copy on

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

  The last tested version of libart-2.0 is 2.3.17.

      LIBS=-lm
  LDFLAGS=
  CPPFLAGS= -I/usr/include/libart-2.0

----------------------------------------------------------------------------
               
checking for zlibVersion in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for png_access_version_number in -lpng... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no libpng.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libpng. 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 libpng and its header files. If
  you have not installed libpng, you can get it either from its original home on

    http://prdownloads.sourceforge.net/libpng/

  You can find also find an archive copy on

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

  The last tested version of libpng is 1.2.10.

      LIBS=-lz -lm
  LDFLAGS=
  CPPFLAGS=

----------------------------------------------------------------------------
               
checking for FT_Init_FreeType in -lfreetype... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no freetype2.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

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=-lz -lm
  LDFLAGS=
  CPPFLAGS= -I/usr/include/freetype2

----------------------------------------------------------------------------
               
configure: error: Please fix the library issues listed above and try again.

It seems pretty straightforward but I can't seem to do what its asking me to do correctly.

Thanks for any help provided.

colucix 08-07-2007 10:14 AM

You have to install some devel packages together with the required libraries. All the reported missing files (libart-2.0.pc, libpng.pc, freetype2.pc) come from the following packages, respectively:
Code:

libart_lgpl-devel
libpng-devel
freetype-devel

You can verify if you have not already installed them on your system and eventually proceed with your usual RPM installation method (e.g. via yum).

lehumphr 08-07-2007 10:24 AM

Awesome thanks for the fast reply.

I manually installed (no yum or apt-get...**pats self on back**) the following packages.

freetype-2.1.10
libart_lpgl-2.3.17
libpng-1.2.10
zlib-1.2.3

Now when I run the ./configure I get the following:

Code:

checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no freetype2.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

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 -lm
  LDFLAGS=
  CPPFLAGS= -I/usr/include/freetype2

----------------------------------------------------------------------------
               
configure: error: Please fix the library issues listed above and try again.

Im almost there I can feel it ... :-)

lehumphr 08-07-2007 10:36 AM

I realized I had to install the -devel versions of those programs to get the libraries that were being called during the configure process.

So now I have succesfully configured and installed rrdtool.

Thank you for the help.

colucix 08-07-2007 10:52 AM

You're welcome! You will find all the .pc files under /usr/lib/pkgconfig, once you have installed the devel packages. If you install (e.g. freetype) from source, usually you will find them under PREFIX/lib/pkgconfig, where PREFIX is the installation dir of your choice. Cheers.


All times are GMT -5. The time now is 01:56 AM.