Paul Foxton <[EMAIL PROTECTED]> wrote:
> Trying to use mysql for authentication and authorization, when I run
> configure I get the following error: "warning: mysql headers not found. use
> --with-mysql-include-dir=<path>"
>
> Ok, I'm probly going to get told off for this, I know this question has been
> asked on this list before and I apologise if there's something in the
> archives I've missed.
Bad user.
There, you've been told off.
> I've been through all relevant the posts in the archive I could find and
> tried the various fixes suggested and still no joy.
>
> this is my configure command:
>
> ./configure --with-mysql-include-dir=/usr/local/mysql/mysql/include
> --with-mysql-lib-dir=/usr/local/lib --with-mysql-dir=/usr/local/mysql/mysql
>
> I've confirmed that mysql.h is in my includes directory.
OK...
> Since the configure script seems to be appending mysql/mysql.h to my
> includes directory I've tried adding a further /mysql dir inside this
> directory with mysql.h inside it, and also then a symbolic link as follows:
> >ln -s ./mysql
Yeah. The default is for mysql to install the include files that
way. On my system, they're in:
[aland@gomul pam_radius]$ locate mysql.h
/usr/include/mysql/mysql.h
So the 'configure' script works correctly there. Your milage may vary.
> I've pretty much drawn a blank now - should I try downloading
> freeradius-snapshot-20010820.tar.gz? I read in one post that the configure
> script wasn't actually checking for the include directory in the command
> line - could this be the problem?
I'm not sure.
I *hate* depending on external software. Most of the problems with
the "server" are really problems with getting it to interact with
other software. And depending on the software version, the system
administrator, or the phase of the moon, it may or may not work. (sigh)
The definitive solution would be to create the 'Makefile' yourself
for the mysql module, by hand.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html