freeradius + mysql 5.0 + mac os x

Mahesh S Kudva mahesh.kudva at robosoftin.com
Sun Jul 23 08:49:31 CEST 2006


Hi All

Here is the solution for freeradius 1.0.5 on Mac OS X with mysql 5.0.

The general location of includes and libraries are in the following folder

System Include: /usr/include
System Library: /usr/lib

But the mysql includes and libraries are placed in the following folder

MySQL Include: /usr/local/mysql/include
MySQL Library: /usr/local/mysql/lib

Even if you try to pass the location with --with-mysql-include-dir or
--with-mysql-lib-dir the configure script fails to get the required files
A workaround is as follows

1) Create a link from the System Include and Library folder with the name
as "mysql/include" and "mysql/lib" to MySQL Include and Library. Hence the
files in System Include and Library would look as follows:

System Library$ls -la
.........
.........
mysql/lib-->/usr/local/mysql/lib
.........
.........

System Include$ls -la
.........
.........
mysql/include-->/usr/local/mysql/include
.........
.........

2) Copy all the includes and libraries from MySQL Include and Library
folder to System Include and Library folders.
3) Follow the instructions to compile. During make you will get a error
stating to re-run "ranlib" on "libmysqlclient.a"
4) Delete the file from the path as referred in the error. This error is
because the system will have 2 copies of the same file one at MySQL
Library and second at System Library.
5) Re-run "make" followed my make install

HTH.

Regards & Thanks
================
Mahesh S Kudva



-----------------------------------------------
Robosoft Technologies - Come home to Technology





More information about the Freeradius-Users mailing list