freeradius - Failed to link to module 'rlm_python': rlm_python.so -
i trying create python authentication freeradius 3.0.8. followed this example. when i'm trying start freeradius in debug mode using command radiusd -x
shows following error.
/usr/local/etc/raddb/mods-enabled/python[9]: failed link module 'rlm_python': rlm_python.so: cannot open shared object file: no such file or directory
i looked /usr/local/lib/ folder , found rlm_python module not there. how can add module? python module inside /raddb/mods-available/
follows.
python { module = example mod_authorize = ${.module} func_authorize = authorize }
appreciate help.
rlm_python isn't packaged depending on distribution.
basic build instructions can found here: http://wiki.freeradius.org/building/home
you need have installed python-dev/python-devel package on system. if python still doesn't work may need specify path python binary manually passing configure e.g. ./configure --with-rlm-python-bin=/usr/bin/python2.7
.
if wan verify configure scripts have picked python cd src/modules/rlm_python; ./configure
on system (macos 10.11.6) output when python found is:
checking gcc... /usr/local/opt/llvm/bin/clang checking whether c compiler works... yes checking c compiler default output file name... a.out checking suffix of executables... checking whether cross compiling... no checking suffix of object files... o checking whether using gnu c compiler... yes checking whether /usr/local/opt/llvm/bin/clang accepts -g... yes checking /usr/local/opt/llvm/bin/clang option accept iso c89... none needed checking how run c preprocessor... /usr/local/opt/llvm/bin/clang -e checking python2.7... python2.7 configure: python sys.prefix "/usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7" configure: python sys.exec_prefix "/usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7" configure: python sys.version "2.7" configure: python local_mod_libs "" configure: python base_mod_libs "" configure: python other_libs "-u _pymac_error $(pythonframeworkinstalldir)/versions/$(version)/$(pythonframework) -ldl -framework corefoundation" checking python.h in /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/include/python2.7/... yes checking py_initialize in -lpython2.7 in /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/config... yes configure: creating ./config.status config.status: creating all.mk
once configure script find python binary, it'll "just work", can compilation , linking flags python itself.
Comments
Post a Comment