]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/unbound/libunbound/python/doc/install.rst
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / 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.