歡迎您光臨本站 註冊首頁

rrdtool與cacti安裝出現libart和freetype問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

rrdtool與cacti安裝出現libart和freetype問題

請問在安裝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 編輯 ]
《解決方案》

B.安裝 libcgi
wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs/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/~oetiker/webtools/rrdtool/pub/libs/libart_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
《解決方案》

把freetype 和libart的開發包裝上就可以了
《解決方案》

回復 #1 wlacf 的帖子

安裝RRDTOOL時請看源碼里的文檔,有一個rrdtool.txt裡面提供了很好的說明.
《解決方案》

把/usr/local/freetype/lib/pkgconfig和/usr/local/libart/lib/pkgconfig下的.pc文件拷貝到/usr/lib/pkgconfig下就可以

[火星人 ] rrdtool與cacti安裝出現libart和freetype問題已經有395次圍觀

http://coctec.com/docs/service/show-post-34195.html