免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7772 | 回复: 4

[Web] rrdtool与cacti安装出现libart和freetype问题 [复制链接]

论坛徽章:
0
发表于 2007-07-05 20:11 |显示全部楼层
请问在安装rrdtool时出现libart和freetype问题


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... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... 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=-lpng -lz -lm
   LDFLAGS=
  CPPFLAGS= -I/usr/include/freetype2

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


怎么解决?

freetype和libart分别装在/usr/local/freetype和/usr/local/libart下面了,如果# ln -s /usr/local/freetype/include/freetype2 /usr/include则可解决freetype的问题,但是libart依法不行。应该怎么在现有基础上进行链接编译通过呢?或者设置系统变量?

这个问题好像挺多的,可惜我还没找到答案。

谢谢!

[ 本帖最后由 wlacf 于 2007-7-6 15:51 编辑 ]

论坛徽章:
0
发表于 2007-07-13 16:18 |显示全部楼层
B.安装 libcgi
wget http://people.ee.ethz.ch/~oetike ... s/cgilib-0.5.tar.gz
tar zxvf cgilib-0.5.tar.gz
cd cgilib-0.5
make
make install
cp libcgi.a /usr/local/lib
cp cgi.h /usr/include

安装libart
wget http://people.ee.ethz.ch/~oetike ... _lgpl-2.3.17.tar.gz
tar zxvf libart_lgpl-2.3.17.tar.gz
cd libart_lgp-2.3.17
./configure
make
make install
cp -r /usr/local/include/libart-2.0 /usr/include

论坛徽章:
0
发表于 2007-07-29 10:34 |显示全部楼层
把freetype 和libart的开发包装上就可以了

论坛徽章:
0
发表于 2007-11-19 20:38 |显示全部楼层

回复 #1 wlacf 的帖子

安装RRDTOOL时请看源码里的文档,有一个rrdtool.txt里面提供了很好的说明.

论坛徽章:
0
发表于 2007-11-21 10:36 |显示全部楼层
把/usr/local/freetype/lib/pkgconfig和/usr/local/libart/lib/pkgconfig下的.pc文件拷贝到/usr/lib/pkgconfig下就可以
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会 限时8.5折

【架构革新 高效可控】2020年6月4日~6日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP