2013-06-11 3 views
0

내가 CentOS는 4.1 컴퓨터에 RRDtool의-1.4.8 구축을 위해 노력하고있어이 나는 CPPFLAGS에 -I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include을 추가에도 불구하고, 구성 스크립트를 실행하면RRDtool의의 구성 스크립트를 따기하지 입심 - 2.0

# ./configure --disable-tcl --disable-python --disable-rrd_graph CFLAGS="-O3 -fPIC" \ 
LIBS="-lm -lwrap -lglib-2.0" LDFLAGS="-Wl,--rpath -Wl,/mypath/lib/libxml2/lib" \ 
CPPFLAGS="-I/mypath/lib/libxml2/include/libxml2/libxml -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" \ 
PKG_CONFIG_PATH=/mypath/lib/libxml2/lib/pkgconfig 

Find 3rd-Party Libraries 
checking dbi/dbi.h usability... no 
checking dbi/dbi.h presence... no 
checking for dbi/dbi.h... no 
checking tcpd.h usability... yes 
checking tcpd.h presence... yes 
checking for tcpd.h... yes 
checking for hosts_access... yes 
checking for glib_check_version in -lglib-2.0... no 
checking for pkg-config... pkg-config 
checking for glib_check_version in -lglib-2.0... no 
configure: WARNING: 
---------------------------------------------------------------------------- 
* I could not find a working copy of glib-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 libglib-2.0 and its header files. If 
    you have not installed glib-2.0, you can get it either from its original home on 

    ftp://ftp.gtk.org/pub/glib/2.28/ 

    You can find also find an archive copy on 

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

    The last tested version of glib-2.0 is 2.28.7. 

     LIBS=-lm -lwrap -lglib-2.0 -lglib-2.0 
    LDFLAGS=-Wl,--rpath -Wl,/mypath/lib/libxml2/lib  
    CPPFLAGS=-I/mypath/lib/libxml2/include/libxml2/libxml -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 

---------------------------------------------------------------------------- 
checking for xmlParseFile in -lxml2... no 
checking for pkg-config... (cached) pkg-config 
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. 

그러나 glib2-(STABLE) 패키지가 이미 설치되어 있습니다 :

다음과 같은 오류가 발생됩니다

# yum list installed | grep glib2 
glib2.x86_64        2.4.7-1    installed  
glib2.i386        2.4.7-1    installed  
glib2-devel.x86_64      2.4.7-1    installed 

나는 아주 사소한 것을 놓친다는 것을 알지만, 내가 뭘 잘못하고있는 걸까?

glib-2.0이 잘못된 버전입니까? 더 최근의 것을 컴파일하고 링크해야합니까?

답변

0

다른 누구도이 문제가 발생하는 경우 glib-2.0 버전이 구형입니다.

이 문제를 해결하려면 glib-2.0을 최신 버전으로 업데이트 한 다음 configure 스크립트를 실행하십시오.

$./configure --disable-tcl --disable-python \ 
    CFLAGS="-O3 -fPIC" LIBS="-lm -lwrap" \ 
    PKG_CONFIG_PATH=/mypath/lib/libxml2/lib/pkgconfig:/mypath2/glib-2.0/lib/pkgconfig \ 
    --prefix=/mypath3 \ 

configure 스크립트가 성공적으로 실행 된 후 make을 호출하여 src를 컴파일하십시오.