首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用旧包时遇到麻烦- Debian jessie/Libdb

使用旧包时遇到麻烦- Debian jessie/Libdb
EN

Server Fault用户
提问于 2015-10-30 12:46:45
回答 1查看 478关注 0票数 0

我被困在想让鱿鱼卫兵跑了。这是由于berkelydb ( libdb )的版本。

这是一个新的Debian服务器安装。没有鬼,只是ssh,构建必要的等等。

从源头上安装了鱿鱼。没问题。

试图从apt安装squidgaurd。想要安装squid3,所以没有。从源头上安装了鱿鱼护卫。没起作用。实现了错误的用户。用正确的用户重新编译。没有错误。

配置了鱿鱼护卫。使用squid卫士-d进行了配置测试,得到了以下结果:

代码语言:javascript
复制
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。

代码语言:javascript
复制
Reinstallation of libdb4.6 is not possible, it cannot be downloaded.
Reinstallation of libdb-dev is not possible, it cannot be downloaded.

到目前为止,我已经达到了我的linux技能的极限。我试过每一个组合的搜索,但没有找到多少。

我本来打算尝试mysql支持,但据我所见,它只用于身份验证。

我要么想:

代码语言:javascript
复制
To fix this and get it working
Find something other than squidguard that can do blacklists.
EN

回答 1

Server Fault用户

回答已采纳

发布于 2018-09-05 02:05:00

我知道这个问题已经有很长一段时间了,但我一直在努力解决同样的问题。

为了解决这个问题,我做了以下工作:

下载BerkeleyDB并从源代码.

编译它

代码语言:javascript
复制
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

再次编译SquidGuard:

代码语言:javascript
复制
./configure  --with-db=/usr/local/berkeleydb

检查它:

代码语言:javascript
复制
squidGuard -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)
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/732763

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档