File: install.rst

package info (click to toggle)
unbound 1.6.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 20,444 kB
  • sloc: ansic: 79,862; sh: 5,040; yacc: 1,900; makefile: 1,315; python: 1,302; perl: 141
file content (38 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Installation
============

Prerequisites
-------------

Python 2.4 or higher, SWIG 1.3 or higher, GNU make

Compiling
---------

After downloading, you can compile the pyUnbound library by doing::

    > tar -xzf unbound-x.x.x-py.tar.gz
    > cd unbound-x.x.x
    > ./configure --with-pyunbound
    > make

You may want to enable ``--with-pythonmodule`` as well if you want to use
python as a module in the resolver.

You need ``GNU make`` to compile sources; ``SWIG`` and ``Python devel``
libraries to compile extension module. 


Testing
-------

If the compilation is successful, you can test the python LDNS extension module
by::

    > cd contrib/python
    > make testenv
    > ./dns-lookup.py

You may want to ``make install`` in the main directory since ``make testenv``
is for debugging.  In contrib/examples you can find simple applications written
in Python using the Unbound extension.