]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/libunbound/python/doc/install.rst
f638ed18e705bc9449b392d8076f0f612ff583a8
[apple/network_cmds.git] / unbound / libunbound / python / doc / install.rst
1 Installation
2 ===================================
3
4 **Prerequisites**
5
6 Python 2.4 or higher, SWIG 1.3 or higher, GNU make
7
8 **Compiling**
9
10 After downloading, you can compile the pyUnbound library by doing::
11
12 > tar -xzf unbound-x.x.x-py.tar.gz
13 > cd unbound-x.x.x
14 > ./configure --with-pyunbound
15 > make
16
17 You may want to --with-pythonmodule as well if you want to use python as
18 a module in the resolver.
19
20 You need GNU make to compile sources; SWIG and Python devel libraries to compile extension module.
21
22
23 **Testing**
24
25 If the compilation is successfull, you can test the python LDNS extension module by::
26
27 > cd contrib/python
28 > make testenv
29 > ./dns-lookup.py
30
31 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.