Dependencies
Some external dependencies must be installed before building or
running FreeRADIUS. The core depends on two libraries:
libtalloc
for memory management and libkqueue
for event
handling.
Many of the modules also have optional dependencies. For example, the LDAP module requires LDAP client libraries to be installed and database modules need their respective database client libraries.
If building from source code, the configure stage will check for the optional dependencies. Any missing libraries will cause that particular module to be skipped.
Libraries
libtalloc
Talloc is a memory allocation library available from Samba
kqueue
Kqueue is an event / timer API originally written for BSD systems.
It is much simpler to use than third-party event libraries. A
library, libkqueue
, is available for Linux systems.
Compilers
GNU Compiler Collection (GCC)
FreeRADIUS v4 requires at least GCC 4.9 to support the C11 features introduced in version 3.
Update your version to GCC 4.9 with these commands:
Depending on your OS, select the commands required to upgrade to GCC 4.9:
sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.9 # Then select GCC 4.9 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 sudo update-alternatives --config gcc # Choose option 3 from the dialogue