v3.2.x - installing rlm_python3 attempts to install rlm_python
Dave Macias
davama at gmail.com
Mon Jul 18 15:01:28 UTC 2022
Hello Everyone,
Happy Monday
Trying to understand how to install FR with rlm_python3 module.
Using python:3.9-alpine docker image, when I run the below configure:
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
...
...
--disable-developer
--with-pcre \
--with-rlm_python3 \
--with-rlm-python3-config-bin=/usr/local/bin/python3-config
During the `make` process, i get a lot of errors for rlm_python. Im
assuming because it's trying to use python2 but not sure really. (see
output here: https://pastebin.com/raw/eRFQnKb0) I dont see any indication
that rlm_python3 is being built or even in `make install` that it was
installed BUT when i look at the lib files i see it. Along with python
bash-5.1# ls -al /usr/lib/freeradius/rlm_python*
-rwxr-xr-x 1 root root 132732 Jul 18 14:44
/usr/lib/freeradius/rlm_python.a
-rwxr-xr-x 1 root root 20 Jul 18 14:44
/usr/lib/freeradius/rlm_python.la
-rwxr-xr-x 1 root root 112920 Jul 18 14:44
/usr/lib/freeradius/rlm_python.so
-rwxr-xr-x 1 root root 140028 Jul 18 14:14
/usr/lib/freeradius/rlm_python3.a
-rwxr-xr-x 1 root root 20 Jul 18 14:14
/usr/lib/freeradius/rlm_python3.la
-rwxr-xr-x 1 root root 120328 Jul 18 14:14
/usr/lib/freeradius/rlm_python3.so
Using the --without-rlm_python option just doesnt install it at all...
I've also tried within src/modules/rlm_python3 directory but get some
interesting output below:
bash-5.1# ./configure
--with-rlm-python3-config-bin=/usr/local/bin/python3-config
...
checking for python... /usr/local/bin/python
checking for python version... 3.9
checking for python platform... linux
checking for python script directory...
${prefix}/lib/python3.9/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python3.9/site-packages
./configure: line 1898: /usr/local/bin/python3-config : not found
configure: /usr/local/bin/python3-config 's cflags were ""
configure: Sanitized cflags were " "
checking for gawk... gawk
./configure: line 1898: /usr/local/bin/python3-config : not found
configure: /usr/local/bin/python3-config 's ldflags were "}"
configure: Sanitized ldflags were ""
checking for dl_iterate_phdr... yes
...
So honestly at a loss... attempted what had been suggested here but get the
same m4_include() output as the last post says.
https://github.com/FreeRADIUS/freeradius-server/issues/4441
How can I install rlm_python3 ?
Any input is much appreciated.
Regards,
Dave
More information about the Freeradius-Users
mailing list