marcosmw
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_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
and using 9.12.2-P2 downloaded from https://www.isc.org/downloads/

the error is:
checking python module 'ply'... configure: error: not found
i already checked and installed a few packages from https://pypi.org/search/?q=ply

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 https://wiki.samba.org/index.php/Settin ... 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/libsofthsm2.so --with-randomdev=/dev/urandom
Thanks
Marcos

epoch1970
Posts: 2989
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
DougieLawson
Posts: 35345
Joined: Sun Jun 16, 2013 11:19 pm
Location: 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: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

v6ops
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 https://www.isc.org/downloads/file/bind ... 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

make
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 “Raspbian”