not logged in | [Login]
Always use radiusd -X
when debugging!
There are only a few requirements to building on RHEL, or CentoS
yum -y install libtalloc-devel
Do one of the following:
https://freeradius.org/ftp/pub/freeradius/
Look for freeradius-server-3.0.*.tar.gz
git clone https://github.com/FreeRADIUS/freeradius-server.git
cd freeradius-server
git checkout v3.0.x
wget https://github.com/FreeRADIUS/freeradius-server/archive/v3.0.x.zip
unzip v3.0.x.zip
cd freeradius-server-3.0.x/
# Use ./configure --enable-developer if you're debugging issues, or using unstable code.
./configure
make
sudo make install
If you wish to use Oracle you will need to recompile FreeRADIUS on a machine that has Oracle development libraries installed. FreeRADIUS is known to work both with a full Oracle installation as well as with the Oracle Instant Client SDK. Once built the resulting RPM package can be deployed with just the Oracle Instant Client (No need for the SDK on production machines)
Most rpm packages available do not included oraclesql.conf due to the fact that they also don't contain the Oracle driver module (due to copyright restrictions).
If you have the Oracle header files in a sane location it should be a simple matter of taking the latest FreeRADIUS release tarball and
dropping it in /usr/src/packages/SOURCES
along with the other files from the suse/
or redhat/
directory inside the tarball with the exception of freeradius.spec
which goes in /usr/src/packages/SPECS
Then edit /usr/src/packages/SPECS/freeradius.spec
and change:
%define _oracle_support 0
to:
%define _oracle_support 1
GCC upgrade only required for versions >= v4.0.x you can skip this step for v3.0.x and below.
RHE7 ships with GCC 4.8.5 but we require GCC >= 4.9.0 for FreeRADIUS >= v4.0.x.
Fortunately, the devtoolset-3
series of packages provides a later version of GCC.
Follow the instructions here to enable the devtoolset-3 repository.
To install:
yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++
and then to get to a shell with the correct environment:
scl enable devtoolset-3 bash
Or can set CC=/opt/rh/devtoolset-3/root/usr/bin/gcc
in your environment, which works just as well.
If you're building on older versions of RedHat then you'll need to compile GCC from source.
libkqueue required for >= v4.0.x, you can skip this step for v3.0.x and below.
Unfortunately neither RHEL nor Centos provide an RPM for libkqueue. The instructions below will produce a libkqueue RPM, which can then be installed for building from source, or distributed with the FreeRADIUS RPMs when building packages.
Building the libkqueue RPM will require these packages:
yum -y install cmake3
Latest version of libkqueue can be found here.
# Replace v2.3.1 with latest version
VERSION=2.3.1
wget https://github.com/mheily/libkqueue/archive/v${VERSION}.tar.gz
tar -xvzf v${VERSION}.tar.gz
cd ./libkqueue-${VERSION}
cmake3 -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
make
cpack3 -G RPM
yum install *.rpm
Last edited by Arran Cudbard-Bell (arr2036), 2019-03-25 05:52:30
Sponsored by Network RADIUS