Install Freeradius in Centos7 with Perl support

Fabian Borot fborot at hotmail.com
Wed Apr 12 20:07:22 CEST 2017


thank you David, I just installed that and I think that it seems OK now :

this is the output of the configure command grepping for python and perl


  checking for perl... /bin/perl
=== configuring in src/modules/rlm_perl (/usr/src/freeradius-server-3.0.13/src/modules/rlm_perl)
checking whether perl executable path has been provided... no
checking for perl... /bin/perl
configure: ExtUtil's ccopts were " -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib64/perl5/CORE "
configure: Sanitized ccopts are "-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -isystem /usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -isystem /usr/lib64/perl5/CORE"
configure: ExtUtil's ldopts were "-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE  -fstack-protector  -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc"
configure: Sanitized ldopts are "-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -fstack-protector -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc"
checking for perl.h... yes
=== configuring in src/modules/rlm_python (/usr/src/freeradius-server-3.0.13/src/modules/rlm_python)
checking for python2.7... python2.7
checking for Python.h in /usr/include/python2.7/... yes
checking for Py_Initialize in -lpython2.7 in /usr/lib/python2.7/config... yes


 also when I search for rlm_perl and rlm_python I see these files inside the build folder

[root at cg-mia-afapi freeradius-server-3.0.13]# find / -name rlm_perl
/usr/src/freeradius-server-3.0.13/src/modules/rlm_perl
/usr/src/freeradius-server-3.0.13/build/make/src/src/modules/rlm_perl
/usr/src/freeradius-server-3.0.13/build/objs/src/modules/rlm_perl


[root at cg-mia-afapi freeradius-server-3.0.13]# find / -name rlm_python
/usr/local/share/doc/freeradius/modules/rlm_python
/usr/src/freeradius-server-3.0.13/doc/modules/rlm_python
/usr/src/freeradius-server-3.0.13/src/modules/rlm_python
/usr/src/freeradius-server-3.0.13/build/make/src/src/modules/rlm_python
/usr/src/freeradius-server-3.0.13/build/objs/src/modules/rlm_python

I also see them in 

[root at cg-mia-afapi freeradius-server-3.0.13]# ls -la /usr/lib64/freeradius/rlm_perl.so
-rwxr-xr-x. 1 root root 31904 Jan 17 18:50 /usr/lib64/freeradius/rlm_perl.so
[root at cg-mia-afapi freeradius-server-3.0.13]# ls -la /usr/lib64/freeradius/rlm_python.so
-rwxr-xr-x. 1 root root 24928 Jan 17 18:50 /usr/lib64/freeradius/rlm_python.so
[root at cg-mia-afapi freeradius-server-3.0.13]#


however when I run  /usr/sbin/radiusd -X > /var/log/fb4.txt and look for perl and or python in that file I dont see any reference to them.

could it be that the 2 modules are installed now BUT by default those 2 modules need to be activated manually ? I see also that only loads modules from the ones inside "/etc/raddb/mods-enabled/" and I guess the loaded ones needed to be "added" by making a link from "/etc/raddb/mods-available/" , is that a valid statement  ?

thank you in advance
fborot


From: Fabian Borot <fborot at hotmail.com>
Sent: Wednesday, April 12, 2017 11:55 AM
To: freeradius-users at lists.freeradius.org
Subject: Install Freeradius in Centos7 with Perl support
    


Hi I installed freeradius-server-3.0.13  on centos7 from 

http://networkradius.com/doc/FreeRADIUS%20Technical%20Guide.pdf



THE FREERADIUS TECHNICAL GUIDE HAPTER NTRODUCTION WHAT ...
networkradius.com
Copyright (C) 2014 Network RADIUS SARL 1 of 58 THE FREERADIUS TECHNICAL GUIDE CHAPTER 1 - INTRODUCTION WHAT IS FREERADIUS? Chapter 1 - Introduction




THE FREERADIUS TECHNICAL GUIDE HAPTER NTRODUCTION WHAT ...
networkradius.com
Copyright (C) 2014 Network RADIUS SARL 1 of 58 THE FREERADIUS TECHNICAL GUIDE CHAPTER 1 - INTRODUCTION WHAT IS FREERADIUS? Chapter 1 - Introduction


I proceedd with the regular, configure, make, make install steps but I saw a lot of warnings about messing dependencies and as I was noticing them I added them  to a yum install list, see below
 
yum install net-snmp net-snmp-utils libtalloc-devel unixODBC-devel unixODBC openssl openssl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker wireshark mysql-devel libmemcached libmemcached-devel libpcap-devel perl-devel python-devel freeradius-perl freeradius-python   freeradius-unixODBC -y
     
but I still cant get the perl module as shown below when doing the config part


=== configuring in src/modules/rlm_perl (/usr/src/freeradius-server-3.0.13/src/modules/rlm_perl)
checking whether perl executable path has been provided... no
checking for perl... /bin/perl
Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
checking for perl.h... no
checking for perl.h in /usr/local/include/... no
checking for perl.h in /opt/include/... no
configure: WARNING: silently not building rlm_perl.
configure: WARNING: FAILURE: rlm_perl requires:  EXTERN.h EXTERN.h libperl.so libperl.so.



please advise... thank you
fborot        


More information about the Freeradius-Users mailing list