Posts: 1
Joined: Thu Sep 20, 2018 3:57 pm

installing BIND from source

Thu Sep 20, 2018 4:14 pm

hai all,

i'm a first timer user of raspberian, and i'm trying to install bind from source since i'm building a test Domain Controller using raspberian.
while samba provisioning are successfull, but when i'm installing bind from source downloaded from isc, i encountered an error while configuring the bind before make & make install.

i'm using:
[email protected]:~/bind/bind-9.12.2-P2 $ cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION="9 (stretch)"
and using 9.12.2-P2 downloaded from

the error is:
checking python module 'ply'... configure: error: not found
i already checked and installed a few packages from

but the problem persist.

i'm a bit confuse since for module argparse the checking was successful and it also in python module

does anyone here has the same problem with me?
enlighten me please.. what ply module that bind for ARM uses?

since if i use the 'apt install bind9' the dlopen that needed to be use in ldap are not loaded. (based on documentation in ... lling_BIND)

or is someone here knows how to load the presource in bind before apt install?

my command to configure bind:
./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib/arm-linux-geabihf --infodir=/usr/share/info --sysconfdir=/etc/bind --with-python=python3 --localstatedir=/ --enable-threads --enable-largefile --with-libtool --enable-shared --enable-static --with-gost=no --with-openssl=/usr --with-gssapi=/usr --with-dlopen=yes --with-gnu-ld --with-geoip=/usr --with-atf=no --enable-native-pkcs11 --with-pkcs11=/usr/lib/arm-linux-gnueabihf/softhsm/ --with-randomdev=/dev/urandom

Posts: 4780
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: installing BIND from source

Thu Sep 20, 2018 4:44 pm

"sudo apt-get install python-ply", maybe?
(didn't check it exists in Raspbian, it does in Debian)
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
Posts: 38506
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: installing BIND from source

Thu Sep 20, 2018 5:30 pm

What prompted you to install from source? There's a ready built bind9 package as part of Raspbian Stretch.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Posts: 1
Joined: Tue May 28, 2019 8:21 pm

Re: installing BIND from source

Tue May 28, 2019 8:27 pm

The following worked for me:

curl ... ion=tar-gz -o bind-9-14-2.tgz
tar -zxvf bind-9.14.2.tar.gz
cd bind-9-14-2
sudo apt-get install openssl
sudo apt-get install libxml2-dev
sudo apt-get install openssl-dev
sudo apt-get install libssl-dev
sudo apt-get install python-ply
sudo apt-get install libcap-dev

#for generic Linux
./configure --with-openssl --enable-threads –with-libxml2

#for Pi Raspbian
CFLAGS="-march=native -Os -g" ./configure --with-openssl --with-libxml2

cd bin/named
sudo touch /etc/named.conf
./named -V
./named -g

sudo make install

As for why to install from source? Because you can :)
You may want to play with the latest and greatest code like me.

Be aware you're on your own for updates, and package updates may overwrite your installation with older code if you don't remove the packages.....

Return to “Raspberry Pi OS”