Hi, I have the following platform: FreeRadius Version: freeradius-server-2.1.11 OS: Ubuntu 11.04 I did all the instructions in "http://wiki.freeradius.org/SQL-HOWTO" to activate mysql in free radius, but I get the following error: Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory Make sure it (and all its dependent libraries!) are in the search path of your system's ld. /usr/local/etc/raddb/sql.conf[22]: Instantiation failed for module "sql" /usr/local/etc/raddb/sites-enabled/default[166]: Failed to load module "sql". /usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize section. I just have a file named "rlm_sql_mysql.so" in the following address: "./src/modules/rlm_sql/drivers/rlm_sql_mysql" what do you think is the problem? Cheers
On 13/09/11 13:23, Majid Dadashi wrote:
Hi,
I have the following platform:
FreeRadius Version: freeradius-server-2.1.11
Installed from source or package? Source I guess.
OS: Ubuntu 11.04
I did all the instructions in "http://wiki.freeradius.org/SQL-HOWTO" to activate mysql in free radius, but I get the following error:
Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
You need the MySQL development headers to compile the MySQL module. Install them and re-build.
On Tue, Sep 13, 2011 at 7:46 PM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
On 13/09/11 13:23, Majid Dadashi wrote:
FreeRadius Version: freeradius-server-2.1.11
Installed from source or package?
Source I guess.
OS: Ubuntu 11.04
Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
You need the MySQL development headers to compile the MySQL module. Install them and re-build.
... and while you're at it, don't use 2.1.11 since it has some known bugs. Either use Ubuntu's 2.1.10 (a simple apt-get ... should be enough), or compile the soon-to-be 2.1.12 from https://github.com/alandekok/freeradius-server/tree/v2.1.x -- Fajar
Hi, Thanks for the answers. I installed from Source. What package do you exactly mean by SQL Development headers? I installed 'libmysqld-dev' and 'libmysqlclient-dev' but still no luck. I also installed freeRadius 2.1.10 using "apt-get" and still the same problem. Any Idea? Best Regards On Tue, Sep 13, 2011 at 5:31 PM, Fajar A. Nugraha <list@fajar.net> wrote:
On Tue, Sep 13, 2011 at 7:46 PM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
On 13/09/11 13:23, Majid Dadashi wrote:
FreeRadius Version: freeradius-server-2.1.11
Installed from source or package?
Source I guess.
OS: Ubuntu 11.04
Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
You need the MySQL development headers to compile the MySQL module. Install them and re-build.
... and while you're at it, don't use 2.1.11 since it has some known bugs. Either use Ubuntu's 2.1.10 (a simple apt-get ... should be enough), or compile the soon-to-be 2.1.12 from https://github.com/alandekok/freeradius-server/tree/v2.1.x
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Problem Solved! I installed freeradius-mysql and it installed the required shared libraries. Thanks for your help. On Tue, Sep 13, 2011 at 6:02 PM, Majid Dadashi <majid.dadashi@gmail.com>wrote:
Hi,
Thanks for the answers. I installed from Source. What package do you exactly mean by SQL Development headers?
I installed 'libmysqld-dev' and 'libmysqlclient-dev' but still no luck.
I also installed freeRadius 2.1.10 using "apt-get" and still the same problem.
Any Idea?
Best Regards
On Tue, Sep 13, 2011 at 5:31 PM, Fajar A. Nugraha <list@fajar.net> wrote:
On Tue, Sep 13, 2011 at 7:46 PM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
On 13/09/11 13:23, Majid Dadashi wrote:
FreeRadius Version: freeradius-server-2.1.11
Installed from source or package?
Source I guess.
OS: Ubuntu 11.04
Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
You need the MySQL development headers to compile the MySQL module. Install them and re-build.
... and while you're at it, don't use 2.1.11 since it has some known bugs. Either use Ubuntu's 2.1.10 (a simple apt-get ... should be enough), or compile the soon-to-be 2.1.12 from https://github.com/alandekok/freeradius-server/tree/v2.1.x
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Fajar A. Nugraha -
Majid Dadashi -
Phil Mayers