Автор Тема: Как обновить SARG?  (Прочитано 3352 раз)

Оффлайн ZOL

  • Завсегдатай
  • *
  • Сообщений: 79
    • Email
Как обновить SARG?
« : 26.01.2013 16:32:04 »
Добрый день!
На школьном сервере p5 настроен squid+dansguardian и т.д. по циклу статей (http://interface31.ru/tech_it/ubuntu-server/index3.html)
Далее, хотелось бы анализировать логи squid с помощью sarg. Установил из репов, но при запуске выдаёт:

*** buffer overflow detected *** sarg terminated

и там ещё много слов нерусских
Погуглив, прочитал что нужно обновить sarg (в репах была версия 2.2.5), а где взять собраный для altlinux rpm?
Пробовал скачать с официального сайта http://sarg.sourceforge.net/sarg.php
Скачал sarg-2.3.5.tar.gz, далее распаковываю и потом
./configure
якобы после этого должен получиться make, но его нету.
Вот результат ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for extra warnings flag in gcc -std=gnu99... yes
checking for implicit-function-declaration error flag in gcc -std=gnu99... yes
checking for format error flag in gcc -std=gnu99... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/dirent.h usability... no
checking sys/dirent.h presence... no
checking for sys/dirent.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for sys/stat.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking gdfontl.h usability... yes
checking gdfontl.h presence... yes
checking for gdfontl.h... yes
checking gdfontt.h usability... yes
checking gdfontt.h presence... yes
checking for gdfontt.h... yes
checking gdfonts.h usability... yes
checking gdfonts.h presence... yes
checking for gdfonts.h... yes
checking gdfontmb.h usability... yes
checking gdfontmb.h presence... yes
checking for gdfontmb.h... yes
checking gdfontg.h usability... yes
checking gdfontg.h presence... yes
checking for gdfontg.h... yes
checking for gdImagePng in -lgd... yes
checking ldap.h usability... no
checking ldap.h presence... no
checking for ldap.h... no
checking for ldap_init in -lldap... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether make sets $(MAKE)... no
checking for a BSD-compatible install... /bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for fopen64... need -D_LARGEFILE64_SOURCE
checking for bzero... yes
checking for backtrace... yes
checking for symlink... yes
checking for lstat... yes
checking for getnameinfo... yes
checking for getaddrinfo... yes
checking for mkstemp... yes
checking for struct sockaddr_storage.ss_len... no
checking size of rlim_t... 8
checking whether LLONG_MAX is declared... yes
using /var/www/html as the directory to install sarg-php
using /usr/local/share/sarg/fonts as the directory of the fonts
using /usr/local/share/sarg/images as the directory of the images
checking for /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl... no
checking for /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl... no
checking for /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/html/onechunk.xsl... no
checking for /usr/share/sgml/docbook/xsl-stylesheets/html/onechunk.xsl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

Оффлайн sb

  • Модератор глобальный
  • *****
  • Сообщений: 8 999
Re: Как обновить SARG?
« Ответ #1 : 26.01.2013 16:56:10 »
А если установить srpm пакет sarg и в ~/RPM/SOURCES вместо тарболла версии 2.2.5 подложить тарболл версии 2.3.5, после чего в ~/RPM/SPECS, в спек файле для sarg поправить версию (с 2.2.5 на 2.3.5). Если есть возможность пересобрать самому, то вот информация по пересборке rpm пакета.

Оффлайн ZOL

  • Завсегдатай
  • *
  • Сообщений: 79
    • Email
Re: Как обновить SARG?
« Ответ #2 : 26.01.2013 20:09:17 »
Сори, затупил немного.
У меня был скаченый пакет. Наверно от RedHat и при установке выдавал сообщение о том, что требуется пакет fillup.
После установки fillup-пакета установился и sarg, точнее не установился, а обновился командой
rpm -Uvh sarg-2.3.2-3.5.i586.rpmТолько после установки пришлось файлик sarg (который для запуска) перекинуть в /usr/sbin. И конфиги лежат не в etc, а в /usr/share/sarg/
Вроде работает. Спасибо