Installing FreeRADIUS

At present, the FreeRADIUS team doesn’t offer precompiled binaries. The best way to start off is to grab the latest source code, compressed using tar and gzip, from the FreeRADIUS web site at http://www.freeradius.org. Once the file is on your computer, execute the following command to uncompress the file:

tar -zxvf freeradius.tar.gz

Next, you’ll need to compile FreeRADIUS. Make sure your system at least has gcc, glibc, binutils, and gmake installed before trying to compile. To begin compiling, change to the directory where your uncompressed source code lies and execute ./configure from the command line. You can also run ./configure -flags and customize the settings for the flags in Table 5-1.

Table 5-1. Optional configuration flags for FreeRADIUS

Flag

Purpose

Default

--enable-shared[=PKGS]

Builds shared libraries.

Yes

--enable-static[=PKGS]

Builds static libraries.

Yes

--enable-fast-install[=PKGS]

Optimizes the resulting files for fastest installation.

Yes

--with-gnu-ld

Makes the procedure assume the C compiler uses GNU lD.

No

--disable-libtool-lock

Avoids locking problems. This may break parallel builds.

Not applicable

--with-logdir=DIR

Specifies the directory for log files.

LOCALSTATEDIR/log
--with-radacctdir=DIR

Specifies the directory for detail files.

LOGDIR/radacct
--with-raddbdir=DIR

Specifies the directory for configuration files.

SYSCONFDIR/raddb
--with-dict-nocase

Makes the dictionary case insensitive.

Yes

--with-ascend-binary ...

Get RADIUS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.