Where I have the line:
module-config: "validator python iterator"
I got unbound-1.4.1 (apt-get source, through Ubuntu 10.04, lucid )
SWIG 1.3.40
Here's how I installed unbound:
./configure --with-pythonmodule
make
sudo make install
Following the testing instructions in pythonmod/doc/install.rst
sudo make test
gives the the same result as above:
./unbound -dv -c ./test-resip.conf
[1299845059] unbound[19650:0] notice: Start of unbound 1.4.1.
[1299845059] unbound[19650:0] warning: did not exit gracefully last time
(17067)
[1299845059] unbound[19650:0] error: Unknown value for next module: '
python iterator'
[1299845059] unbound[19650:0] fatal error: failed to setup modules
make: *** [test] Error 1
Any suggestions to what I may try next?
Could it be that pythonmod is not built? The directory build/pythonmod
does contain a set of .o & .lo files.
unbound: [18452:0] debug: module config: "validator python iterator"
unbound: [18452:0] error: Unknown value for next module: ' python
iterator'
Based on the other information in your email, it appears that you have
compiled in support for python, so I would suggest changing your module
config to "python validator iterator". I was only able to get Python
support working when python appeared first.
But I can't find a resource saying _why_ those wouldn't work.
Anyawy, now i'm runing it with:
module-config: "python"
and getting:
Mar 11 14:57:23 dab unbound: [4611:0] warning: did not exit gracefully
last time (2858)
Mar 11 14:57:23 dab unbound: [4611:0] debug: chdir
to /usr/local/etc/unbound
Mar 11 14:57:23 dab unbound: [4611:0] debug: module config: "python"
Mar 11 14:57:23 dab unbound: [4611:0] error: Unknown value for next
module: 'python'
Mar 11 14:57:23 dab unbound: [4611:0] fatal error: failed to setup
modules
Does any one have any suggestions on what to try next?
What does "known value for next module: 'python'" mean?
I removed all modules except for "python".
I ran "./configure --with-pythonmodule"
Checked config.h that WITH_PYTHONMODULE was defined to 1
ran
make clean
make
sudo checkinstall (debian-style make install).
and now it seems to work.
I'm still wondering whether or not I'm allowed/recommended to use the
python module _and_ valdiator/iterator or not.