我被困在想让鱿鱼卫兵跑了。这是由于berkelydb ( libdb )的版本。
这是一个新的Debian服务器安装。没有鬼,只是ssh,构建必要的等等。
从源头上安装了鱿鱼。没问题。
试图从apt安装squidgaurd。想要安装squid3,所以没有。从源头上安装了鱿鱼护卫。没起作用。实现了错误的用户。用正确的用户重新编译。没有错误。
配置了鱿鱼护卫。使用squid卫士-d进行了配置测试,得到了以下结果:
2015-10-29 18:41:10 [10707] New setting: dbhome: /usr/local/squidGuard/db
2015-10-29 18:41:10 [10707] New setting: logdir: /usr/local/squidGuard/log
BDB1565 DB->put: method not permitted before handle's open method
2015-10-29 18:41:10 [10707] sgDbUpdate: put: Invalid argument
2015-10-29 18:41:10 [10707] Going into emergency mode谷歌了一下。看到1.4有一个问题,任何晚于4.6的berkelydb都有问题。
为libdb4.6找到.deb。安装好了。同样的失败。使用-- without重新编译,指向/usr/lib/libdb-4.6.so -使用-without lib重新编译相同的失败,指向/usr/lib/libdb-4.6。因此,在没有.so文件名的情况下,同样的失败再次尝试。同样的失败。
接下来我想我可能漏掉了什么。因此,我找到了挤压后端存储库,并尝试从那里重新安装libdb4.6。
Reinstallation of libdb4.6 is not possible, it cannot be downloaded.
Reinstallation of libdb-dev is not possible, it cannot be downloaded.到目前为止,我已经达到了我的linux技能的极限。我试过每一个组合的搜索,但没有找到多少。
我本来打算尝试mysql支持,但据我所见,它只用于身份验证。
我要么想:
To fix this and get it working
Find something other than squidguard that can do blacklists.发布于 2018-09-05 02:05:00
我知道这个问题已经有很长一段时间了,但我一直在努力解决同样的问题。
为了解决这个问题,我做了以下工作:
编译它
tar -xzvf db-4.6.21.tar.gz
cd db-4.6.21
cd build_unix/
../dist/configure --prefix=/usr/local/berkeleydb
make
make install
echo "/usr/local/berkeleydb/lib/" >> /etc/ld.so.conf
ldconfig./configure --with-db=/usr/local/berkeleydbsquidGuard -v
SquidGuard: 1.4 Berkeley DB 4.6.21: (September 27, 2007)
squidGuard -d
2018-09-04 23:00:47 [7581] New setting: dbhome: /usr/local/squidGuard/db
2018-09-04 23:00:47 [7581] New setting: logdir: /usr/local/squidGuard/log
2018-09-04 23:01:01 [7581] squidGuard 1.4 started (1536112847.496)
2018-09-04 23:01:01 [7581] squidGuard ready for requests (1536112861.611)https://serverfault.com/questions/732763
复制相似问题