+ Responder ao Tópico



  1. #1

    Padrão Erro ao instalar o sarg 2.2.5

    ola galera..

    eu aki di novo neh.. rsrs
    eh o seguinte..
    eu to instalando o sarg para gerar relatorios de acessos do squid para o webmim..
    soh q da dando o seguinte erro:


    grepday.o: In function `I18NgdImageStringFT':
    /usr/firewall/sarg-2.2.1/grepday.c:66: undefined reference to `gdImageStringFTEx'
    grepday.o: In function `bar':
    /usr/firewall/sarg-2.2.1/grepday.c:183: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:184: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:185: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:186: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:187: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:199: undefined reference to `gdImageFilledRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:209: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:211: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:212: undefined reference to `gdImageFilledRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:213: undefined reference to `gdImageRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:227: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:178: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:179: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:180: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:168: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:169: undefined reference to `gdImageColorAllocate'
    grepday.o:/usr/firewall/sarg-2.2.1/grepday.c:170: more undefined references to `gdImageColorAllocate' follow
    grepday.o: In function `greport_day':
    /usr/firewall/sarg-2.2.1/grepday.c:257: undefined reference to `gdImageCreate'
    /usr/firewall/sarg-2.2.1/grepday.c:259: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:260: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:261: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:262: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:263: undefined reference to `gdImageColorAllocate'
    grepday.o:/usr/firewall/sarg-2.2.1/grepday.c:264: more undefined references to `gdImageColorAllocate' follow
    grepday.o: In function `greport_day':
    /usr/firewall/sarg-2.2.1/grepday.c:268: undefined reference to `gdImageRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:269: undefined reference to `gdImageFilledRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:279: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:289: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:291: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:292: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:293: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:294: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:295: undefined reference to `gdImageLine'
    grepday.o:/usr/firewall/sarg-2.2.1/grepday.c:296: more undefined references to `gdImageLine' follow
    grepday.o: In function `greport_day':
    /usr/firewall/sarg-2.2.1/grepday.c:451: undefined reference to `gdImagePng'
    /usr/firewall/sarg-2.2.1/grepday.c:453: undefined reference to `gdImageDestroy'
    collect2: ld returned 1 exit status
    make: *** [sarg] Error 1



    ja tentei com duas versoes de sarg .. e ambas deram o msmo erro ..
    isso acontece quando eu digito make...
    quando eu digito make install aparece assim:


    [email protected]:/usr/firewall/sarg-2.2.1# make install
    gcc -g util.o log.o report.o topuser.o email.o sort.o html.o totger.o index.o getconf.o usage.o decomp.o ip2name.o useragent.o exclude.o convlog.o totday.o repday.o datafile.o indexonly.o splitlog.o lastlog.o topsites.o siteuser.o css.o smartfilter.o denied.o authfail.o language.o charset.o squidguard_log.o squidguard_report.o auth.o download.o grepday.o dansguardian_log.o dansguardian_report.o realtime.o -o sarg
    grepday.o: In function `I18NgdImageStringFT':
    /usr/firewall/sarg-2.2.1/grepday.c:66: undefined reference to `gdImageStringFTEx'
    grepday.o: In function `bar':
    /usr/firewall/sarg-2.2.1/grepday.c:183: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:184: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:185: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:186: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:187: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:199: undefined reference to `gdImageFilledRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:209: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:211: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:212: undefined reference to `gdImageFilledRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:213: undefined reference to `gdImageRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:227: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:178: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:179: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:180: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:168: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:169: undefined reference to `gdImageColorAllocate'
    grepday.o:/usr/firewall/sarg-2.2.1/grepday.c:170: more undefined references to `gdImageColorAllocate' follow
    grepday.o: In function `greport_day':
    /usr/firewall/sarg-2.2.1/grepday.c:257: undefined reference to `gdImageCreate'
    /usr/firewall/sarg-2.2.1/grepday.c:259: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:260: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:261: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:262: undefined reference to `gdImageColorAllocate'
    /usr/firewall/sarg-2.2.1/grepday.c:263: undefined reference to `gdImageColorAllocate'
    grepday.o:/usr/firewall/sarg-2.2.1/grepday.c:264: more undefined references to `gdImageColorAllocate' follow
    grepday.o: In function `greport_day':
    /usr/firewall/sarg-2.2.1/grepday.c:268: undefined reference to `gdImageRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:269: undefined reference to `gdImageFilledRectangle'
    /usr/firewall/sarg-2.2.1/grepday.c:279: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:289: undefined reference to `gdImageFilledPolygon'
    /usr/firewall/sarg-2.2.1/grepday.c:291: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:292: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:293: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:294: undefined reference to `gdImageLine'
    /usr/firewall/sarg-2.2.1/grepday.c:295: undefined reference to `gdImageLine'
    grepday.o:/usr/firewall/sarg-2.2.1/grepday.c:296: more undefined references to `gdImageLine' follow
    grepday.o: In function `greport_day':
    /usr/firewall/sarg-2.2.1/grepday.c:451: undefined reference to `gdImagePng'
    /usr/firewall/sarg-2.2.1/grepday.c:453: undefined reference to `gdImageDestroy'
    collect2: ld returned 1 exit status
    make: *** [sarg] Error 1
    ..
    gostaria de saber ..
    q q eu estou fazendo de errado .. ??
    pq eu segui alguns tutoriais .. mas nao deu certo .. .

    grande abraçoo a todos..

  2. #2

    Padrão

    vc instalou o seu sistema com ou sem pacotes de video?
    pois ele precisa de alguns desses pacotes para rodar



  3. #3

    Padrão

    eu sou novato em linux sabe ..
    eu nao sei se instalei .. ou nao ..
    como faço pra descobrir;??

    valew

  4. #4

    Padrão

    qual a sua distro?



  5. #5

    Padrão

    uso o slackware 12.2

  6. #6
    Valério
    Visitante

    Padrão

    Faça o seguinte:

    remova a versão do libgd instalada no slack (12.2 no meu caso)
    rm /usr/lib/libgd.*

    instale a libgd a partir dos fontes, rode o ldconfig

    reinstale o sarg

    deverá funcionar, resolvi o mesmo problema assim.



  7. #7

    Padrão

    olha amigoo .. bom dia..
    eh o seguinte
    eu fui remover a libgd.. e tem 4 libgd
    qual delas eu removo.
    ta assim.
    libgd.la
    libgd.so
    libgd.so.2
    libgd.so.2.0.0

    ai eu pergunto .. qual delas eu posso remover??

    e como eu vou instalar a libgd a partir dos fontes.??
    onde eu consigo esses fontes??

    valew pela ajudaa..
    grande abraçooo