squidGuard安装有什么要注意的吗?

发布于 2022-07-18 11:40:00 字数 723 浏览 25 评论 2

系统环境:
linux as4.0 u2   
squid-2.5.STABLE14.tar.tar
db-2.7.7.tar.gz
squidGuard-1.2.0.tar.gz
安装步骤:
1、以用户squid的身份安装了squid和Berkeley DB ,并且squid正常运行
2、安装squidGuard
[squid@gateway squidGuard-1.2.0]$ ./configure --with-sg-config=/usr/local/squidGuard/squidGuard.conf
--with-sg-logdir=/usr/local/squidGuard/logs
--with-sg-dbhome=/usr/local/squidGuard/db
[squid@gateway squidGuard-1.2.0]$ make
[squid@gateway squidGuard-1.2.0]$ make test
[squid@gateway squidGuard-1.2.0]$ make install

上述还在./configure时就出错,说squidGuard.conf不存在,logs不存在

为什么呢?我尝试用root来安装也是不行!我已经在/usr/local下建立了squidGuard,并且chown给了
squid.squid。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浊酒尽余欢 2022-07-22 02:46:20

算了,放弃了…………,尝试安装了两天了。即便是安装不提示错误,可是就是不见其配置文件squidGuard.conf。

没的办法哦

顾北清歌寒 2022-07-21 11:48:51

[squid@gateway squidGuard-1.2.0]$ mkdir /usr/local/squidGuard/log
You have new mail in /var/spool/mail/root
[squid@gateway squidGuard-1.2.0]$ mkdir /usr/local/squidGuard/db
[squid@gateway squidGuard-1.2.0]$ ./configure --prefix=/usr/local/squidGuard
> --with-sg-config=/etc/squid/squidGuard.conf
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  
checking for -gcc... no
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... bison -y
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... yes
checking for ANSI C header files... yes
checking for db.h... yes
checking for regex.h... yes
checking for unistd.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... 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... (cached) yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for regcomp... yes
checking for regerror... yes
checking for regexec... yes
checking for strdup... yes
checking for strerror... yes
checking for vsprintf... yes
checking for sigaction... yes
checking for signal... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/sg.h
config.status: creating doc/Makefile
config.status: creating test/Makefile
config.status: creating test/test1.conf
config.status: creating test/test2.conf
config.status: creating samples/Makefile
config.status: creating samples/sample.conf
config.status: creating samples/squidGuard.cgi
config.status: creating samples/squidGuard-simple.cgi
config.status: creating contrib/Makefile
config.status: creating contrib/squidGuardRobot/squidGuardRobot
config.status: creating contrib/sgclean/sgclean
config.status: creating contrib/hostbyname/hostbyname
config.status: creating src/config.h
config.status: src/config.h is unchanged
[squid@gateway squidGuard-1.2.0]$ --with-sg-logdir=/usr/local/squidGuard/log
> --with-sg-dbhome=/usr/local/squidGuard/db
> --with-db=/usr/local/BerkeleyDB
bash: --with-sg-logdir=/usr/local/squidGuard/log: No such file or directory
[squid@gateway squidGuard-1.2.0]$

我应该注意什么呢?

[ 本帖最后由 mdiane 于 2006-6-14 11:08 编辑 ]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文