URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID12
Нить номер: 4506
[ Назад ]

Исходное сообщение
"проблема Asp11+ SquidGuard-1.2.0 + squid2.6 st5 "

Отправлено Lexa , 16-Ноя-06 12:32 
все ставится из исходников:
поставил squid (патчил для поддержки icap) все ок, все работает.
поставил berkeleydb 2.7.7
поставил squidGuard-1.2.0
все поставилось.
все настроил как надо? в squid прописал путь к squidguard, при запуске в логе squidGuard
пишется:
2006-11-16 12:10:52 [21326] init domainlist /usr/local/squidGuard/db/blacklist/domains
2006-11-16 12:10:52 [21326] create new dbfile /usr/local/squidGuard/db/blacklist/domains.db
2006-11-16 12:10:52 [21326] init urllist /usr/local/squidGuard/db/blacklist/urls
2006-11-16 12:10:52 [21326] create new dbfile /usr/local/squidGuard/db/blacklist/urls.db
2006-11-16 12:10:52 [21326] squidGuard 1.2.0 started (1163668252.505)
2006-11-16 12:10:52 [21326] db update done
2006-11-16 12:10:52 [21326] squidGuard stopped (1163668252.679)
2006-11-16 12:10:52 [21282] squidGuard stopped (1163668252.796)
2006-11-16 12:10:52 [21330] init domainlist /usr/local/squidGuard/db/blacklist/domains
2006-11-16 12:10:52 [21330] loading dbfile /usr/local/squidGuard/db/blacklist/domains.db
2006-11-16 12:10:52 [21330] domainlist empty, removed from memory
2006-11-16 12:10:52 [21330] init urllist /usr/local/squidGuard/db/blacklist/urls
2006-11-16 12:10:52 [21330] loading dbfile /usr/local/squidGuard/db/blacklist/urls.db
2006-11-16 12:10:52 [21330] urllist empty, removed from memory
2006-11-16 12:10:52 [21330] squidGuard 1.2.0 started (1163668252.852)
2006-11-16 12:10:52 [21330] squidGuard ready for requests (1163668252.853)

проблема с этим:
domainlist empty, removed from memory
urllist empty, removed from memory

вроде как все работает, тока без баз .db

права:
ls -l /usr/local/squidGuard/db/blacklist
total 876
-rw-rw-r--  1 squid squid  91650 Nov 16 11:26 domains
-rw-r--r--  1 squid squid 247808 Nov 16 12:10 domains.db
-rw-rw-r--  1 squid squid    444 May 10  1999 expressions
-rw-rw-r--  1 squid squid 201484 Sep 13  1999 urls
-rw-r--r--  1 squid squid 327680 Nov 16 12:10 urls.db

покапался в инете и нашел:
Squidguard reports "domainlist empty, removed from memory"

In spite of what the documentation says, Squidguard 1.20 requires version 3.29 of the Berkely db. It won't work with version 2.27, nor will it work with 4.0. The assertion that configure makes about requiring 3.2.* or later is not really correct.  SquidGuard needs 3.2.x ( not sure which version is too low) and we know  specifically that it works quite nicely with 3.2.9.  With 3.3.x, it craps out every time.  Same with 2.7.7. (Thanks to Robert Nickel for these specifics).
(It has been reported that squidguard 1.20 will work with other versions of the db if you are using plain text files for your blacklists; in other words, if there are no *.db files in your blacklist directories. This can really slow down the startup time of squid/squidguard, but otherwise may not be harmful.)

Squidguard 1.14, on the other hand, requires Berkeley 2.27.
You can have version 2.27 and 3.2x installed at the same time.

Note: this error can also result from incorrect permissions or ownership on the .db files.

поставил berkeleydb 3.2.9
компилю squidGuard и не компилится:
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for bison... no
checking for byacc... no
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for lynx... false
checking for perl... /usr/bin/perl
checking for db_version in -ldb... no

** The Berkley DB library is required for squidGuard
   to compile. Get it from http://www.sleepycat.com
   use --with-db=DIR or --with-db-lib=DIR to specify
   its location. (default is /usr/local/BerkeleyDB)

с berkeley 2.7.7 компилится все ок.
что делать? помогите!!!


Содержание

Сообщения в этом обсуждении
"проблема Asp11+ SquidGuard-1.2.0 + squid2.6 st5 "
Отправлено Dinamit , 16-Ноя-06 13:27 
Проверить пути к berkeleydb 3.2.9

"проблема Asp11+ SquidGuard-1.2.0 + squid2.6 st5 "
Отправлено Lexa , 16-Ноя-06 14:00 
>Проверить пути к berkeleydb 3.2.9
каким образом я должен это сделать? физически они существуют
/usr/local/BerkeleyDB.3.2
. и поставилась BerkeleyDB.3.2.9 без проблем. при установке squidGuard я указываю:
./configure --prefix=/usr/local/squidGuard --with-db=/usr/local/BerkeleyDB.3.2 --with-sg-config=/usr/local/squidGuard/squidGuard.conf --with-sg-logdir=/usr/local/squidGuard/log --with-sg-dbhome=/usr/local/squidGuard/db



"проблема Asp11+ SquidGuard-1.2.0 + squid2.6 st5 "
Отправлено Lexei , 17-Ноя-06 21:02 

Вопрос снят. Всем спасибо за "активное" участие в решении данной проблемы. Все решилось патчем c подержкой db4.