rlm_python ist nicht immer abhängig von der Verteilung.
Grund Build Anleitung finden Sie hier: http://wiki.freeradius.org/building/Home
Sie werden auch die Python-dev/Python-Entwickler-Paket auf Ihrem System haben müssen installiert. Wenn Python immer noch nicht funktioniert, müssen Sie möglicherweise den Pfad zur Python-Binärdatei manuell angeben, indem Sie ihn an z. ./configure --with-rlm-python-bin=/usr/bin/python2.7
.
Wenn Sie nur den configure Skripten Python aufgenommen überprüfen wan zu haben cd src/modules/rlm_python; ./configure
Auf meinem System (macOS 10.11.6) die Ausgabe, wenn Python gefunden wird, ist:
checking for gcc... /usr/local/opt/llvm/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/opt/llvm/bin/clang accepts -g... yes
checking for /usr/local/opt/llvm/bin/clang option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/local/opt/llvm/bin/clang -E
checking for 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 for Python.h in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7/... yes
checking for 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
Sobald der Configure-Skript Wenn Sie das Python-Binary finden, wird es im Allgemeinen "einfach funktionieren", da es dann Kompilierungs- und Verknüpfungsflags von Python selbst erhalten kann.
Was genau muss ich tun, um rlm_python zu paketieren? – Channa
Welches Verpackungssystem verwenden Sie? –
Ich verwende folgende Befehle zum Erstellen von freeradius './configure \t make', Sorry, wenn das nicht das ist, was Sie fragen. Ich bin neu bei Freeradius – Channa