关于安装rrdtool的问题,请大家帮忙,谢谢。

来源:百度知道 编辑:UC知道 时间:2024/05/29 08:55:46
安装之前环境是这样的
[root@localhost ~]# rpm -qa |grep zlib
zlib-1.2.3-3
[root@localhost ~]# rpm -qa |grep libpng
libpng-1.2.10-7.1.el5_0.1
[root@localhost ~]# rpm -qa |grep freetype
freetype-2.2.1-19.el5
[root@localhost ~]# rpm -qa |grep libart_lgpl
libart_lgpl-2.3.17-4

请问还要安装什么环境,如何安装。具体步骤说一下吧。非常感谢。都装了几天了rrdtool还没装上去。郁闷啊。
老是提示一下错误:
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&#

需要配置PKG_CONFIG_PATH,如下:
exportPKG_CONFIG_PATH=/usr/local/freetype-2.1.10/lib/pkgconfig:/usr/local/apr-1.4.6/lib/pkgconfig:/usr/local/expat-2.1.0/lib/pkgconfig:/usr/local/libpng/lib/pkgconfig:/usr/local/libart_lgpl-2.3.17/lib/pkgconfig:/usr/local/protobuf-2.5.0/lib/pkgconfig:/usr/local/apr/lib/pkgconfig:/usr/local/confuse-2.7/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
(具体在什么位置,可以通过:find / -name pkgconfig获取到)

需要安装rpm -ivh libart_lgpl-devel*.rpm
freetype-devel*.rpm
libpng-devel*.rpm