bind9.11.31, 9.16.15 编译运行,编译选项,注意事项


bind9.11.31因为新增了不少功能,在编译时与以往版本有区别

1。 若编译configure参数如下:

./configure --prefix=/data/c/bind.mod/bind-9.11.31/named --without-python --disable-linux-caps

则可能会包错误如下:

checking for OpenSSL library... configure: error: OpenSSL was not found in any of /usr /usr/local /usr/local/ssl /opt/local /usr/pkg /usr/sfw; use --with-openssl=/path
If you don't want OpenSSL, use --without-openssl

看提示,可以加上openssl路径:

找到自己的openssl目录,修改为如下:

./configure --prefix=/data/c/bind.mod/bind-9.11.31/named --without-python --disable-linux-caps --with-openssl=/usr/local/openssl-1.1.1c/

2。 修复之后,再次运行,会报错误:

configure: error: found libjson include but not library.

修改为如下:

./configure --prefix=/data/c/bind.mod/bind-9.11.31/named --without-python --disable-linux-caps --with-openssl=/usr/local/openssl-1.1.1c/ --without-libjson

 

bind9.16.15

如果按照如下参数:./configure --prefix=/data/c/named --without-python --disable-linux-caps

会报错:

configure: error: libuv not found
是因为新版本的bind使用了libuv
需要安装libuv

参照文章:https://blog.csdn.net/linggang_123/article/details/113248156

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值