17-Jan-03 at 12:11, Shannon Johnson ([EMAIL PROTECTED]) wrote :
> From: Simon White <[EMAIL PROTECTED]>
>
> >> Fri Jan 17 11:14:36 2003 : Error: rlm_sql (sql): Could not link driver
> >> rlm_sql_mysql: file not found
> >>
> >> Fri Jan 17 11:14:36 2003 : Error: rlm_sql (sql): Make sure it (and all
> >> its dependent libraries!) are in the search path of your system's ld.
> >>
> >> Fri Jan 17 11:14:36 2003 : Error: radiusd.conf[14]: sql: Module
> >> instantiation failed.
> >>
> >> Exactly which libraries does it need? I bought the Radius book from
> >> O'Reilly, and there isn't anything of use in there... I tried adding
> >> /usr/local/lib to the /etc/ld.so.conf and running ldconfig, but that
> >> didn't work (do I need to recompile freeradius afterwards?). I also
> >> tried compiling freeradius using the -disable-sharing flag, but that
> >> didn't work either. I have freeradius 0.8.1 and mysql 3.23.54a (bench,
> >> client, server, and devel). If anyone has any ideas on what I should
> >> try, or if you could provide a list of exactly which libraries it needs
> >> to find, I can link them manually...?
>
> > Did you pass the options to configure in order to enable mysql at
> > compile time?
>
> Which options should I pass? I install all the MySQL parts (including devel)
> to their default places... the configuring and the compiling don't give me
> any errors, so I'm assuming it found mysql and enabled support for it.
It is possibly enabled by default in the freeradius compile, but only if
that can find the libraries and stuff. You can specify them manually:-
--with-mysql-include-dir=DIR
Directory where the MySQL includes may be found
--with-mysql-lib-dir=DIR
Directory where the MySQL libraries may be found
--with-mysql-dir=DIR
Base directory where MySQL is installed
(libs are usually foo.o files, already compiled binaries)
(includes are usually foo.c and foo.h files, source code)
For relevant other info, look here (starting from the path into which
the tarball was extracted)
src/modules/rlm_sql/drivers/rlm_sql_mysql/db_mysql.sql
raddb/sql.conf
doc/README
-and-
http://www.frontios.com/freeradius.html
Regards,
--
|-Simon White, Internet Services Manager, Certified Check Point CCSA.
|-MTDS Internet, Security, Anti-Virus, Linux and Hosting Solutions.
|-MTDS 14, rue du 16 novembre, Agdal, Rabat, Morocco.
|-MTDS tel +212.3.767.4861 - fax +212.3.767.4863
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html