[bind10-dev] BIND 10 on FreeBSD

Kazunori Fujiwara fujiwara at wide.ad.jp
Fri Aug 19 09:40:32 UTC 2011


I did further test now on my FreeBSD 8.2-RELEASE box.
py-sqlite3 with Python 3.2 does not work well on FreeBSD ports.
py-sqlite3 with Python 3.1 works well.

Then,
-----------------------------------------------------------------------
How to install BIND 10 on FreeBSD 8.2

0. start empty /usr/local and /etc/make.conf
   # Or, PYTHON_VERSION=python2.6 or python2.7
   #     python3.2 is not installed.
   #     python library ports are not installed:
   #        py26-sqlite3, py26-elementtree, ...
   #        py27-sqlite3, ...

1. install ports/ports-mgmt/portconf
   (cd /usr/ports/ports-mgmt/portconf; make install clean)

2. edit /usr/local/etc/ports.conf and add following lines.

databases/py-sqlite3: PYTHON_VERSION=python3.1
devel/py-elementtree: PYTHON_VERSION=python3.1
devel/py-setproctitle: PYTHON_VERSION=python3.1
devel/googletest: PYTHON_VERSION=python3.1

3. install ports/security/botan.
#  botan depends on boost-libs and python2.6 or python 2.7.
#  /usr/local/bin/python will be python2.7.

#  devel/boost-libs is automatically installed by dependency.

4. install other ports

  lang/python31
  devel/py-elementtree
  devel/py-setproctitle
  devel/googletest
  devel/log4cplus
  devel/pkg-config
  devel/automake    # automake depends on devel/autoconf
  # devel/git

5. installl BIND 10

  fetch BIND 10 from git.
  autoreconf
  # configure may require --pythonpath
  Do "./configure;make check"

-----------------------------------------------------------------------
--
Kazunori Fujiwara

> From: Kazunori Fujiwara <fujiwara at f.pyon.org>
> Subject: Re: [bind10-dev] BIND 10 on FreeBSD
> Date: Fri, 12 Aug 2011 19:29:46 +0900 (JST)
> 
> /usr/ports/security/botan depends on Python 2.6.
> 
> PYTHON_VERSION="python3.2" causes botan build error.
> 
> PYTHON_VERSIN in /etc/make.conf must be "PYTHON_VERSION=python2.6"
> for botan and X11.
> 
> I installed /usr/ports/ports-mgmt/portconf/ and prepared
> /usr/local/etc/ports.conf .
> 
> devel/py-elementtree: PYTHON_VERSION=python3.2
> databases/py-sqlite3: PYTHON_VERSION=python3.2
> devel/py-setproctitle: PYTHON_VERSION=python3.2
> devel/googletest: PYTHON_VERSION=python3.2
> 
> and installed required ports:
>   security/botan
>   lang/python32
>   databases/py-sqlite3
>   devel/py-elementtree
>   devel/py-setproctitle
>   devel/googletest
>   devel/boost-libs
>   devel/log4cplus
>   ...
> 
> configure may require --pythonpath.
> 
> # But FreeBSD 8-STABLE's "gcc version 4.2.2 20070831 prerelease [FreeBSD]"
> # cannot compile bind10/src/lib/asiodns/tcp_server.cc
> #
> # FreeBSD 8.2R's gcc 4.2.1 is OK for BIND 10.
> 
> --
> Kazunori Fujiwara
> _______________________________________________
> bind10-dev mailing list
> bind10-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind10-dev
> 



More information about the bind10-dev mailing list