vi freeradius.spec
%configure --prefix=%{_prefix}
\
--localstatedir=%{_localstatedir}
\
--sysconfdir=%{_sysconfdir}
\
--mandir=%{_mandir}
\
--with-docdir=%{_datadir}/doc/%{name}-%{version}
\
--with-system-libtool
\
--disable-ltdl-install
\
--with-ltdl-lib=/usr/lib
\
--with-ltdl-include=/usr/include
\
--with-large-files
--with-udpfromto --with-edir \
My add line-->
--with-mysql-lib-dir=/usr/lib/mysql
\
--with-rlm-sql_postgresql-include-dir=/usr/include/pgsql
\
--with-rlm-krb5-include-dir=/usr/kerberos/include
\
--with-rlm-krb5-lib-dir=/usr/kerberos/lib
make
Build the RPM.
$ cd ~/rpmbuild/SPECS
$ rpmbuild -bb freeradius.spec
# rpm -Uvh freeradius-1.1.7-0.i386.rpm
# rpm -Uvh
freeradius-debuginfo-1.1.7-0.i386.rpm
radiusd.conf ===> enable sql module
starting.......
radiusd -xx
error huntgroups not
foung ==============> first error
/etc/raddb/all file permision 640
chmod 644 all file
starting.......
radiusd
-xx
===============> second error
rlm_sql (sql): Could not
link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No
such file or directory
rlm_sql (sql): Make sure it (and all its dependent
libraries!) are in the search path of your system's ld.
radiusd.conf[14]:
sql: Module instantiation failed.
radiusd.conf[1860] Unknown module
"sql".
radiusd.conf[1789] Failed to parse authorize section.
Thank You very much.