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