[root@localhost squidGuard-1.2.0]# ./configure --prefix=/usr/local/squidGuard --with-db=/usr/local/BerkeleyDB.4.5 --with-db-lib=/usr/local/BerkeleyDB.4.5 --with-sg-config=/usr/local/squidGuard/squidGuard.conf --with-sg-logdir=/usr/local/squidGuard/log --with-sg-dbhome=/usr/local/squidGuard/dbchecking for gcc... gccchecking for C compiler default output... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for executable suffix...checking for object suffix... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking how to run the C preprocessor... gcc -Echecking whether make sets ${MAKE}... yeschecking for a BSD compatible install... /usr/bin/install -cchecking for bison... nochecking for byacc... nochecking for flex... nochecking for lex... nochecking for yywrap in -lfl... nochecking for yywrap in -ll... nochecking for lynx... /usr/bin/lynxchecking for perl... /usr/bin/perlchecking 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)
[root@localhost squidGuard-1.2.0]# ./configure --prefix=/usr/local/squidGuard --with-db-lib=/usr/local/BerkeleyDB.4.5/lib --with-db-inc=/usr/local/BerkeleyDB.4.5/include --with-sg-config=/usr/local/squidGuard/squidGuard.conf --with-sg-logdir=/usr/local/squidGuard/log --with-sg-dbhome=/usr/local/squidGuard/dbchecking for gcc... gccchecking for C compiler default output... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for executable suffix...checking for object suffix... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking how to run the C preprocessor... gcc -Echecking whether make sets ${MAKE}... yeschecking for a BSD compatible install... /usr/bin/install -cchecking for bison... nochecking for byacc... nochecking for flex... nochecking for lex... nochecking for yywrap in -lfl... nochecking for yywrap in -ll... nochecking for lynx... /usr/bin/lynxchecking for perl... /usr/bin/perlchecking for db_version in -ldb... yeschecking for ANSI C header files... nochecking for db.h... yeschecking for regex.h... yeschecking for unistd.h... yeschecking for gcc option to accept ANSI C... none neededchecking for an ANSI C-conforming const... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... (cached) yeschecking for size_t... yeschecking whether struct tm is in sys/time.h or time.h... time.hchecking for regcomp... yeschecking for regerror... yeschecking for regexec... yeschecking for strdup... yeschecking for strerror... yeschecking for vsprintf... yeschecking for sigaction... yeschecking for signal... yes** The Berkley DB library version 2.6.4 or newer is required. Get it from http://www.sleepycat.com use --with-db=DIR or --with-db-inc=DIR, --with-db-lib=DIR to specify its location (default is /usr/local/BerkeleyDB)[root@localhost squidGuard-1.2.0]# ls /usr/local/BerkeleyDB.4.5bin/ docs/ include/ lib/[root@localhost squidGuard-1.2.0]#
configure:1995: checking for bisonconfigure:2021: result: noconfigure:1995: checking for byaccconfigure:2021: result: noconfigure:2033: checking for flexconfigure:2059: result: noconfigure:2033: checking for lexconfigure:2059: result: no
configure:1670: checking how to run the C preprocessorconfigure:1696: gcc -E conftest.cconfigure:1702: $? = 0configure:1729: gcc -E conftest.cconfigure:1726:28: error: ac_nonexistent.h: No such file or directoryconfigure:1735: $? = 1configure: failed program was:
configure:2473: checking for ANSI C header filesconfigure:2487: gcc -E -I/usr/local/BerkeleyDB.4.5/include conftest.cconfigure:2493: $? = 0configure:2580: gcc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.5/include -I/usr/local/BerkeleyDB.4.5/include -L/usr/local/BerkeleyDB.4.5/lib conftest.c -ldb >&5configure: In function 'main':configure:2572: warning: incompatible implicit declaration of built-in function 'exit'configure:2583: $? = 0configure:2585: ./conftest./conftest: error while loading shared libraries: libdb-4.5.so: cannot open shared object file: No such file or directoryconfigure:2588: $? = 127configure: program exited with status 127configure: failed program was:
[root@localhost squidGuard-1.2.0]# makemaking all in squidGuard-1.2.0make[1]: Вхожу у каталог "/home/oles/Install/squidGuard-1.2.0/src"making all in srcgcc -I.. -I. -I. -I/usr/local/BerkeleyDB.4.5/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB.4.5/include -c main.cgcc -I.. -I. -I. -I/usr/local/BerkeleyDB.4.5/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB.4.5/include -c sgLog.cgcc -I.. -I. -I. -I/usr/local/BerkeleyDB.4.5/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB.4.5/include -c sgDb.csgDb.c: In function ‘sgDbInit’:sgDb.c:101: warning: passing argument 2 of ‘Db->dbp->open’ from incompatible pointer typesgDb.c:101: warning: passing argument 4 of ‘Db->dbp->open’ makes pointer from integer without a castsgDb.c:101: error: too few arguments to function ‘Db->dbp->open’sgDb.c:107: warning: passing argument 2 of ‘Db->dbp->open’ from incompatible pointer typesgDb.c:107: warning: passing argument 4 of ‘Db->dbp->open’ makes pointer from integer without a castsgDb.c:107: error: too few arguments to function ‘Db->dbp->open’make[1]: *** [sgDb.o] Помилка 1make[1]: Залишаю каталог "/home/oles/Install/squidGuard-1.2.0/src"make: *** [all] Помилка 1