wiki:CentOS61

CentOS 6.1 Install Notes

Introduction and System Description

This page describes a setup of BIND 10 on CentOS 6.1, using the Git repository on 2011-12-28. Keep in mind that many things have changed since then. In particular, Kea does not require python3 or SQLite. It can also use either OpenSSL or Botan, so Botan is no longer a strict dependency.

The hardware is a Linux KVM virtual machine, in i386 mode. The CentOS "minimal" install ISO was used:

http://mirror.nl.leaseweb.net/centos/6.1/isos/i386/CentOS-6.1-i386-minimal.iso

I logged in as root, and started the network by running dhclient manually:

dhclient eth0

I then updated the system, pulling in security and other bug fixes:

yum update

I added a user:

adduser -m shane
passwd shane

The system is now ready to begin installing prerequisites.

Setup of Packaged Prerequisites

I installed Git, gcc, bc, make, autoconf/automake, libtool, Boost, and the SQLite libraries via yum:

yum install git gcc-c++ bc make automake libtool boost boost-devel sqlite-devel

Setup of Other Prerequisites

CentOS 6.1 comes with Python 2.6.6 and does not seem to have any Python 3 available. Python 3 was downloaded and built:

yum install wget
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel
wget http://www.python.org/ftp/python/3.2/Python-3.2.tar.bz2
tar xf Python-3.2.tar.bz2
cd Python-3.2
./configure --prefix=/opt/python3
make
make install

Botan is also missing as a packaged library:

wget http://botan.randombit.net/files/Botan-1.10.1.tgz
tar xf Botan-1.10.1.tgz
cd Botan-1.10.1
./configure.py --prefix=/opt/botan
make
make check
make install

We have to create botan-config ourselves:

ln -s /opt/botan/bin/botan-config-1.10 /opt/botan/bin/botan-config

Finally, we have to install log4cplus ourselves:

wget http://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/1.0.4/log4cplus-1.0.4.tar.bz2
tar xf log4cplus-1.0.4.tar.bz2
cd log4cplus-1.0.4
./configure --prefix=/opt/log4cplus
make
make install

Building and Installing

BIND 10 was checked out and built:

git clone git://git.bind10.isc.org/bind10
cd bind10
autoreconf --install
./configure --prefix=/opt/bind10 --with-pythonpath=/opt/python3/bin/python3 --with-botan-config=/opt/botan/bin/botan-config-1.10 --with-log4cplus=/opt/log4cplus
make
Last modified 3 years ago Last modified on Dec 3, 2014, 4:45:23 PM