Red Hat Bugzilla – Bug 161907
Could not link driver rlm_sql_mysql: file not found
Last modified: 2007-11-30 17:07:07 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050523 Red Hat/1.7.8-188.8.131.52
Description of problem:
After compiling the packet when trying to start freeradius I receive this:
sql: safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
rlm_sql (sql1): Could not link driver rlm_sql_mysql: file not found
rlm_sql (sql1): Make sure it (and all its dependent libraries!) are in the search path of your system's ld.
radiusd.conf: sql1: Module instantiation failed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: The program refuses to start.
Why are you recompiling the package?
Partly because I need the sqlcounter module also, partly because I'm not
subscribed to RH Network so I compile from source all the updates.
The above described problem appears also if the unmodified source package is
*** Bug 161909 has been marked as a duplicate of this bug. ***
Have you installed the freeradius-mysql package which contains rlm_sql_mysql.?
Yes, and all the necessary files are present.
I also encountered this issue, when i copy the file from
to /usr/lib freeradius starts and at first glance it seems to work.
Sorry forgot to add, I don't know what's causing it, but strace radiusd -f -X
told me he couldn't find the file and I found it in the build directory ;-)
So let's call it a workaround ...
You have to use the .so file, not the .la.
Please verify this problem with the original packages.
I'm running Red Hat Enterprise Linux AS release 3 (Taroon Update 5) and the
following packages are installed
/sbin/service radius start
gives the following in /var/log/radius/radius.log
Wed Jul 27 16:53:12 2005 : Error: rlm_sql (sql): Could not link driver
rlm_sql_mysql: file not found
Wed Jul 27 16:53:12 2005 : Error: rlm_sql (sql): Make sure it (and all its
dependent libraries!) are in the search path of your system's ld.
Wed Jul 27 16:53:12 2005 : Error: radiusd.conf: sql: Module instantiation
Running strace gives
open("/usr/lib/rlm_sql_mysql.la", O_RDONLY) = -1 ENOENT (No such file or directory)
The system has /usr/lib/rlm_sql_mysql.so (provided by freeradius-mysql) but not
I'm experiencing the same problem with freeradius-1.0.1-2.RHEL3.2 and
Any reason this bug hasn't been fixed (Been almost a year now)?
*** Bug 193830 has been marked as a duplicate of this bug. ***
Please have a look at
BTW: There was no freeradius-mysql package in RHEL-3.
This package should resolve the problem.
Please remeber that this is a test package, which might be pushed out as an
update package later if the fixes are ok. For now, this package is unsupported.
Here is the correct link:
Many thanks, the compiled package works perfectly!
I am closing this, becaus there was no freeradius-mysql for RHEL-3.