Oct 04 2009

Compiling Freeradius with Oracle Support

Published by at 5:45 pm under Freeradius,Oracle

Compilation Error?




The Oracle client being installed (11g R2 in my setup), Freeradius doesn’t seem to find Oracle headers.
I get the following error message:

Error compiling Oracle/Freeradius
configure: WARNING: oracle headers not found. 
Use --with-oracle-home-dir=<path>.
configure: WARNING: silently not building rlm_sql_oracle.
configure: WARNING: FAILURE: rlm_sql_oracle requires: oci.h.

 
Specifying the path to –with-oracle-home-dir doesn’t change anything at all.
 

Installing Oracle Client

Install Oracle runtime client to get necessary headers for applications.
I won’t focus on this since this is not the subject. More information is available on Oracle.
 

Compiling Freeradius

I thought I could get out of this giving the compiler the path to oci.h like:

CFLAGS=-I/home/oracle/app/oracle/product/11.2.0/client_1/rdbms/public

 

But, I am still getting errors. Before finding out environment variables need to be set as for any Oracle user:

ORACLE_BASE=/home/oracle/app/oracle
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/client_1

Freeradius has automated libraries detection with Oracle variables.


No responses yet

Comments RSS

Leave a Reply