install.rst revision 294190
1Installation
2===================================
3
4**Prerequisites**
5
6Python 2.4 or higher, SWIG 1.3 or higher, GNU make
7
8**Compiling**
9
10After 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
17You may want to --with-pythonmodule as well if you want to use python as
18a module in the resolver.
19
20You need GNU make to compile sources; SWIG and Python devel libraries to compile extension module. 
21
22
23**Testing**
24
25If the compilation is successful, you can test the python LDNS extension module by::
26
27	> cd contrib/python
28	> make testenv
29	> ./dns-lookup.py
30
31You 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.
32