[bind10-dev] Xfrin code is committed to trunk
zhanglikun
zlkzhy at gmail.com
Wed Mar 10 01:41:54 UTC 2010
> > For build the binding, you can find the Make file ?Makefile.dat? we
> > wrote at trunk/src/lib/dns/, and modify current make file base on it.
> >
> > Python binding code is message_python.cc
> How can I easily test running this?
> Also I see your unittest has hardcoded values for your own server.
boost.python should be installed before building python binding code. (I
remember shane and feng had discussed about it in last f2f meeting)
So the steps of easily test running this is:
1. Download the source code of boost. (I used boost 1.41).
2. Build and install boost.python. see the document
http://www.boost.org/doc/libs/1_42_0/libs/python/doc/building.html
3. build bind10 code in trunk.
4. Copy file "trunk/src/lib/exceptions/exceptions.cc" to
"trunk/src/lib/dns/" temply, Make sure the Makefile "Makefile.dat" in
src/lib/dns/ can find it.
5. cd "trunk/src/lib/dns/", run "make -f Makefile.dat", so file
'bind10_message.so' will be created.
6. Copy 'bind10_message.so' to path /usr/local/lib/python3.1/lib-dynload/
(Maybe other path If python3.1 is installed with some prefix).
7. Then bind10_message can be imported normally by python like other
standard modules.
Seems the steps is not quite easy. :)
Thanks
Zhanglikun
More information about the bind10-dev
mailing list