[rrd-users] RRDTool 1.3.x for CentOS 4.x (repost due to lost msg)

Richard D Alloway ralloway at winbeam.com
Thu Sep 25 23:18:17 CEST 2008


On Thu, 25 Sep 2008, Bernard Li wrote:

> I was able to build rrdtool 1.3.3 on CentOS 4.x.  The RPMs and all the
> dependencies are available here:
>
> http://therealms.org/oss/rrdtool/
>
> I built the rrdtool RPM with the following command:
>
> rpmbuild -ba --define "_without_php 1" --define "_without_tcl 1"
> --define "_without_ruby 1" --define "_without_python 1"
> /usr/src/redhat/SPECS/rrdtool.spec
>
> I had to manually fix the spec file from the tarball since it has some
> wrong references to the release version/prefix, etc.
>
> If you have any questions, please feel free to let me know.
>
> Cheers,
>
> Bernard


Hi Bernard!

I'm still having some serious issues, even after installing the RPMs and 
modifying the spec file for version,etc.

Here is the portion that fails:

Find 3rd-Party Libraries
checking for cairo_font_options_create in -lcairo... yes
checking cairo.h usability... no
checking cairo.h presence... no
checking for cairo.h... no
checking for pkg-config... pkg-config
checking for cairo_font_options_create in -lcairo... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-png. 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 libcairo and its header files. If
   you have not installed cairo-png, you can get it either from its original 
home on

      http://cairographics.org/releases/

   You can find also find an archive copy on

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

   The last tested version of cairo-png is 1.4.6.

        LIBS=-lm  -lcairo -lfreetype -lz -lfontconfig -lpng12 -lXrender -lX11 
-lXext
    LDFLAGS= -L/usr/lib64 -L/usr/lib64/frysk -L/usr/lib -L/usr/X11R6/lib
   CPPFLAGS= -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/libpng12 
-I/usr/include/freetype2

----------------------------------------------------------------------------

checking for cairo_svg_surface_create in -lcairo... yes
checking cairo-svg.h usability... no
checking cairo-svg.h presence... no
checking for cairo-svg.h... no
checking for pkg-config... (cached) pkg-config
checking for cairo_svg_surface_create in -lcairo... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-svg. 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 libcairo and its header files. If
   you have not installed cairo-svg, you can get it either from its original 
home on

      http://cairographics.org/releases/

   You can find also find an archive copy on

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

   The last tested version of cairo-svg is 1.4.6.

        LIBS=-lm  -lcairo -lfreetype -lz -lfontconfig -lpng12 -lXrender -lX11 
-lXext
    LDFLAGS= -L/usr/lib64 -L/usr/lib64/frysk -L/usr/lib -L/usr/X11R6/lib
   CPPFLAGS= -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/libpng12

----------------------------------------------------------------------------

checking for cairo_pdf_surface_create in -lcairo... yes
checking cairo-pdf.h usability... no
checking cairo-pdf.h presence... no
checking for cairo-pdf.h... no
checking for pkg-config... (cached) pkg-config
checking for cairo_pdf_surface_create in -lcairo... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-pdf. 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 libcairo and its header files. If
   you have not installed cairo-pdf, you can get it either from its original 
home on

      http://cairographics.org/releases/

   You can find also find an archive copy on

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

   The last tested version of cairo-pdf is 1.4.6.

        LIBS=-lm  -lcairo -lfreetype -lz -lfontconfig -lpng12 -lXrender -lX11 
-lXext
    LDFLAGS= -L/usr/lib64 -L/usr/lib64/frysk -L/usr/lib -L/usr/X11R6/lib
   CPPFLAGS= -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/libpng12

----------------------------------------------------------------------------

checking for cairo_ps_surface_create in -lcairo... yes
checking cairo-ps.h usability... no
checking cairo-ps.h presence... no
checking for cairo-ps.h... no
checking for pkg-config... (cached) pkg-config
checking for cairo_ps_surface_create in -lcairo... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-ps. 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 libcairo and its header files. If
   you have not installed cairo-ps, you can get it either from its original home 
on

      http://cairographics.org/releases/

   You can find also find an archive copy on

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

   The last tested version of cairo-ps is 1.4.6.

        LIBS=-lm  -lcairo -lfreetype -lz -lfontconfig -lpng12 -lXrender -lX11 
-lXext
    LDFLAGS= -L/usr/lib64 -L/usr/lib64/frysk -L/usr/lib -L/usr/X11R6/lib
   CPPFLAGS= -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/libpng12

----------------------------------------------------------------------------

checking for pango_cairo_context_set_font_options in -lpango-1.0... no
checking for pkg-config... (cached) pkg-config
checking for pango_cairo_context_set_font_options in -lpango-1.0... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of pangocairo. 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 libpango-1.0 and its header files. 
If  you have not installed pangocairo, you can get it either from its original 
home on

      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17

   You can find also find an archive copy on

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

   The last tested version of pangocairo is 1.17.

        LIBS=-lm  -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 
-lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lfontconfig -lpng12 -lXrender 
-lX11 -lXext
    LDFLAGS= -L/usr/lib64 -L/usr/lib64/frysk -L/usr/lib -L/usr/X11R6/lib 
-L/usr/lib64/frysk
   CPPFLAGS= -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/X11R6/include 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12

----------------------------------------------------------------------------

checking for xmlParseFile in -lxml2... yes
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
configure: error: Please fix the library issues listed above and try again.
error: Bad exit status from /var/tmp/rpm-tmp.75574 (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.75574 (%build)




Any thoughts?

Thanks again!

-Rich



More information about the rrd-users mailing list