Build RPM ,Fedora Core5 ,Help me please freeradius-1.1.7.tar.gz

현옥 jinjusi at Kornet.net
Fri Aug 10 09:19:59 CEST 2007


Help me please

My linux box  Fedora Core5 kernel 2.6.20-1.2320.fc5
freeradius-1.1.7.tar.gz

$ cd ~
$ cp -a /usr/src/redhat/ rpmbuild
$ echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros

$ cp freeradius-1.1.7.tar.gz ~/rpmbuild/SOURCES/
$ tar zxf freeradius-1.1.7.tar.gz freeradius-1.1.7/redhat/freeradius.spec
$ cp freeradius-1.1.7/redhat/freeradius.spec ~/rpmbuild/SPECS/


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070810/3b697667/attachment.html>


More information about the Freeradius-Users mailing list