+ Responder ao Tópico



  1. #1

    Padrão erro ao instalar o gd

    opa galera bele?

    eu to querendo instalar o mrtg aqui no slack10.1 oa apache ta instalado e snmpd tbm quando fui instalar o mrtg pediu o gd dai to instalando ele aqui mas deu esse erro alguem sabe o q pode ser? o erro da no meio do make lol, esta abaixo meu make

    [email protected]:/usr/local/src/gd# make
    make all-recursive
    make[1]: Entering directory `/usr/local/src/gd'
    Making all in config
    make[2]: Entering directory `/usr/local/src/gd/config'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/src/gd/config'
    Making all in test
    make[2]: Entering directory `/usr/local/src/gd/test'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/src/gd/test'
    make[2]: Entering directory `/usr/local/src/gd'
    if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -g -O2 -MT gdft.lo -MD -MP -MF ".deps/gdft.Tpo" -c -o gdft.lo gdft.c; \
    then mv -f ".deps/gdft.Tpo" ".deps/gdft.Plo"; else rm -f ".deps/gdft.Tpo"; exit 1; fi
    mkdir .libs
    gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.lo
    gdft.c:1366:35: fontconfig/fontconfig.h: No such file or directory
    gdft.c:1429: error: parse error before '*' token
    gdft.c:1429: error: parse error before '*' token
    gdft.c: In function `find_font':
    gdft.c:1431: error: `FcResult' undeclared (first use in this function)
    gdft.c:1431: error: (Each undeclared identifier is reported only once
    gdft.c:1431: error: for each function it appears in.)
    gdft.c:1431: error: parse error before "result"
    gdft.c:1433: error: `pattern' undeclared (first use in this function)
    gdft.c:1433: error: `FcMatchPattern' undeclared (first use in this function)
    gdft.c:1434: error: `FcMatchFont' undeclared (first use in this function)
    gdft.c:1437: error: `result' undeclared (first use in this function)
    gdft.c:1437: warning: return makes pointer from integer without a cast
    gdft.c: At top level:
    gdft.c:1442: error: parse error before '*' token
    gdft.c: In function `find_postscript_font':
    gdft.c:1444: error: `FcPattern' undeclared (first use in this function)
    gdft.c:1444: error: `font' undeclared (first use in this function)
    gdft.c:1447: error: `fontpattern' undeclared (first use in this function)
    gdft.c:1449: error: `fontname' undeclared (first use in this function)
    gdft.c:1450: error: `FcChar8' undeclared (first use in this function)
    gdft.c:1450: error: `family' undeclared (first use in this function)
    gdft.c:1452: error: `pattern' undeclared (first use in this function)
    gdft.c:1454: error: `FC_FAMILY' undeclared (first use in this function)
    gdft.c:1454: error: `FcTypeString' undeclared (first use in this function)
    gdft.c:1455: error: `FC_STYLE' undeclared (first use in this function)
    gdft.c:1460: error: `FcResultMatch' undeclared (first use in this function)
    gdft.c: In function `font_pattern':
    gdft.c:1479: error: `FcPattern' undeclared (first use in this function)
    gdft.c:1479: error: `font' undeclared (first use in this function)
    gdft.c:1480: error: `FcChar8' undeclared (first use in this function)
    gdft.c:1480: error: `file' undeclared (first use in this function)
    gdft.c:1481: error: `pattern' undeclared (first use in this function)
    gdft.c:1494: error: parse error before "FcChar8"
    gdft.c:1501: error: `FC_FILE' undeclared (first use in this function)
    gdft.c:1501: error: `FcResultMatch' undeclared (first use in this function)
    make[2]: *** [gdft.lo] Error 1
    make[2]: Leaving directory `/usr/local/src/gd'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/gd'
    make: *** [all] Error 2

  2. #2

    Padrão erro ao instalar o gd

    verifique se isso aque existe:

    Código :
    fontconfig/fontconfig.h:

    []'s



  3. #3

    Padrão erro ao instalar o gd

    [email protected]:/etc/rc.d# locate fontconfig.h
    /usr/X11R6/include/fontconfig/fontconfig.h
    [email protected]:/etc/rc.d#

  4. #4

    Padrão erro ao instalar o gd

    como estah o seu configure?

    []'s



  5. #5

    Padrão erro ao instalar o gd

    como assim como esta?

    /usr/local/src/gd#

    ta dentro dessa pasta, dei só ./configure sem nenhum parametro adicional o INSTALL dele nao vem mta coisa

  6. #6

    Padrão erro ao instalar o gd

    eh q vc pode compilar a gd com suporta a varios aplicativos externos, como jpeg, png e talz... eu imaginei q talvez vc tivesse habilitado algum....

    kra...

    dah uma olhada nas opcoes do configure, pra ver se nao tem como vc definir na mao o caminho do fontconfig....

    ou coloca o header do fontconfig em /usr/include

    []'s



  7. #7

    Padrão erro ao instalar o gd

    galera valew ai

    eu apaguei tudo coloquei um link simbolico do fontconfig.h no no /usr/includes como o demiurgo deu a dica

    e fiz de novo ./configure make e make install

    foi tudo ok

    valew