logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Slackware: Błąd podczas konfiguracji MRTG po instalacji GD 2.0.33

nelik1987 06 Sie 2007 18:39 2662 6
REKLAMA
  • #1 4151844
    nelik1987
    Poziom 31  
    Posty: 2190
    Pomógł: 43
    Ocena: 428
    Witam mam taki problem ze statystykamiw MRTG. Proszę mi nie proponować innych programów do statystyk bo mam książkę o slaku która opiera się o MRTG.

    Najpierw ściągnąłem
    mrt-2.14.3.tar.gz
    i
    gd-2.0.33.tar.gz


    potem rozpakowałem oba archiwa do /root/ no i zacząłem od GD czyli następnie make i i wszystko było OK, potem zabrałem się za MRTG, rozpakowałem go i wpisałem

    No i niestety pojawiło się to co z tym zrobić?

    
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking how to run the C preprocessor... gcc -E
    checking whether make sets $(MAKE)... yes
    checking for a BSD-compatible install... /usr/bin/ginstall -c
    checking for perl... /usr/bin/perl
    checking for groff... /usr/bin/groff
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for inttypes.h... (cached) yes
    checking for unsigned long long... yes
    checking for long long... yes
    checking for strtoll... yes
    checking for printf long long format specifier... %lld
    checking for pow in -lm... yes
    checking for gdImageGif in -lgd... no
    checking for gdImagePng in -lgd... no
    checking for gdImagePng_jpg in -lgd... no
    checking for gdImagePng_jpg_ft in -lgd... no
    checking for gdImageGd in -lgd... no
    checking gd.h usability... yes
    checking gd.h presence... yes
    checking for gd.h... yes
    
    ** Ooops, one of many bad things happened:
    
       a)  You don't have the GD library installed.
           Get it from http://www.boutell.com, compile it and
           use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
           its location. You might also have to use --with-z-inc,
    	     --with-z-lib and --with-png-inc, --with-png-lib for gd
    	     versions 1.6 and higher.  Check config.log for more
           information on the problem.
    
       b)  You have the GD library installed, but not the gd.h
           header file.  Download the source (see above) and use
           --with-gd-inc=DIR to specify where the file can be found.
    
       c)  You have the library and the header file installed, but
           you also have a shared GD library in the same directory. 
           Remove the shared library files and/or links (e.g. 
           libgd.so.2.0.0, libgd.so and libgd.so.2).  This is especially
    	     likely if you're using a recent (post 1.8.4) version of GD
           and didn't configure it with --disable-shared.
    
       d)  You have gd library installed and also it's headers, but you are
           missing libpng (and headers) or freetype (and headers)
           (mrtg does not use freetype, but if your copy of gd is precompiled
           against it, you have to install it ... 
    
       Consider following the instructions in doc/mrtg-unix-guide.txt
    
    


    Bardzo proszę o pomoc bo ze wszystkim już sobie poradziłem ale stanąłem na statystykach
  • REKLAMA
  • #2 4152306
    Konto nie istnieje
    Konto nie istnieje  
  • REKLAMA
  • REKLAMA
  • #4 4152346
    Konto nie istnieje
    Konto nie istnieje  
  • REKLAMA
  • #5 4180845
    antyBrygadaW
    Poziom 15  
    Posty: 190
    Pomógł: 1
    Ocena: 9
    a co to za ksiązka o linuxie? jakaś wartościowa napisz co nieco?
  • #6 4181017
    nelik1987
    Poziom 31  
    Posty: 2190
    Pomógł: 43
    Ocena: 428
    problem już rozwiązany brakowało kilku bibliotek a ta książka to : http://helion.pl/ksiazki/slacli.htm

    Slackware Linux
    Autor: Radosław Sokół
    ISBN: 83-246-0055-8
    Format: B5, stron: 304
    Zawiera 2 CD ze slackware

    bardzo ją polecam za jej pomocą (+ troszeczkę pomocy z forum) postawiłem bez większych problemów,świetnie działający lecz ciągle rozbudowywany serwer FTP, HTTP, Counter-Strike i inne

    zapraszam http://www.boras.pl
  • #7 11537291
    michalslack
    Poziom 12  
    Posty: 23
    Pomógł: 3
    Ocena: 2
    Przepraszam za odświeżenie, ale strona z postem jako 1-wsza w google jest.

    Tak się dzieje gdy mamy serwer bez instalacji X'ów. GD jest w katalogu L, ale część wymaganych paczek znajdziemy w X, aby wszystko chodziło bez problemu wystarczy zainstalować paczki:

    libX11
    libXpm
    libxcb
    libXau
    libXdmcp

    Oczywiście relacje występują w każdej wersji systemu slackware oraz dla arch 32 64.

Podsumowanie tematu

✨ Problem dotyczył błędu podczas konfiguracji MRTG (Multi Router Traffic Grapher) na systemie Slackware po instalacji biblioteki GD w wersji 2.0.33. Użytkownik pobrał i zainstalował ręcznie pakiety gd-2.0.33 oraz mrtg-2.14.3 ze źródeł, wykonując standardowe kroki: ./configure, make, install, ldconfig. Podczas konfiguracji MRTG pojawiły się problemy, które wynikały z brakujących bibliotek zależnych. W dyskusji zasugerowano, że MRTG dostępny jest tylko w formie kodu źródłowego, a nie w gotowych paczkach. Wskazano również na konieczność posiadania bibliotek developerskich, takich jak libpng i freetype. Ostatecznie rozwiązaniem było doinstalowanie dodatkowych pakietów X11, które zawierają potrzebne zależności: libX11, libXpm, libxcb, libXau, libXdmcp. Problem występuje szczególnie na serwerach Slackware bez zainstalowanego środowiska graficznego X. Jako pomocna literatura polecono książkę "Slackware Linux" autorstwa Radosława Sokoła, która zawiera instrukcje instalacji MRTG i innych usług na Slackware.
Wygenerowane przez model językowy.
REKLAMA