Re: Install issues with Redhat and MySQL
Dennis Skinner <[EMAIL PROTECTED]> wrote: > Interesting that other compiled programs on this system don't seem to > have these issues. Exim, for example, seems to be able to find and use > the mysql libraries fine when I tell it where they are... Maybe exim doesn't use libltdl. Exim probably also statically links the MySQL client libraries (either the .a, or .so), and doesn't call dlopen() to load them. It appears that dlopen() is a major source of problems on many systems. Build the server so it's statically linked. The problems should go away. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Install issues with Redhat and MySQL
On Mon, 2003-10-13 at 16:47, Alan DeKok wrote: > Dennis Skinner <[EMAIL PROTECTED]> wrote: > > I tried the LD_CONFIG_PATH, modifying ld.so.conf, and --disable-shared > > with same results. > > LD_CONFIG_PATH? Have you tried LD_LIBRARY_PATH? Sorry, brain fart. LD_LIBRARY_PATH does not work. > > > The rlm_sql_mysql.so file is created and an ldd on it shows it is linked > > properly to libmysqlclient.so. > > Does libmysqlclient need *another* library, like libz? Seems to be able to find them fine. Other programs can use libmysqlclient. > As the FAQ says, FreeRADIUS uses system calls to load libraries. If > those calls fail, then your system can't find those libraries, and > there's little you can do to FreeRADIUS to fix your system. > Interesting that other compiled programs on this system don't seem to have these issues. Exim, for example, seems to be able to find and use the mysql libraries fine when I tell it where they are... I will try a compiled install of mysql and see what happens. -- Dennis Skinner <[EMAIL PROTECTED]> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Install issues with Redhat and MySQL
On Tue, 2003-10-14 at 00:35, Aris Prasetya NCS wrote: > Hi Dennis, > I use: > mysql-standard-4.0.15-pc-linux-i686.tar.gz > freeradius-0.9.1.tar.gz > > pls check whether your: > /usr/local/freeradius-0.9.1/src/modules/rlm_sql/drivers/rlm_sql_mysql > has: > rlm_sql_mysql.a > rlm_sql_mysql.la > sql_mysql.o > sql_mysql.lo These files are there -- Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Install issues with Redhat and MySQL
Hi Dennis, I use: mysql-standard-4.0.15-pc-linux-i686.tar.gz freeradius-0.9.1.tar.gz pls check whether your: /usr/local/freeradius-0.9.1/src/modules/rlm_sql/drivers/rlm_sql_mysql has: rlm_sql_mysql.a rlm_sql_mysql.la sql_mysql.o sql_mysql.lo if not, you might need to go to: /usr/local/freeradius-0.9.1/src/modules/rlm_sql (do not go over to drivers/rlm_sql_mysql) then run: ./configure --disable-shared make make install hope this help. cheers @rs-,-'-- -Original Message- From: Dennis Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 2:41 AM To: FreeRADIUS Users Subject: Install issues with Redhat and MySQL Hello all, I searched the archives and read the FAQ regarding this issue. There error message I am getting is: rlm_sql (sql): Could not link driver mysql: file not found rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld. radiusd.conf[504]: sql: Module instantiation failed. When I ran the configure the first time without pointing it to the mysql libs, I got an error. So I added the --with-mysql-include-dir and --with-mysql-lib-dir as instructed. Configured fine (at least with regards to mysql; postgres and company gave error, but I don't use them). I did get some warnings during the make like this for rlm_mysql: warning: assignment discards qualifiers from pointer target type I tried the LD_CONFIG_PATH, modifying ld.so.conf, and --disable-shared with same results. I have mysql client, devel, and shared installed via rpm (version 4.0.15). I downgraded to 3.23 and the only change was that I didn't get the pointer target type warning during the make. The rlm_sql_mysql.so file is created and an ldd on it shows it is linked properly to libmysqlclient.so. Not sure where to go from here. Redhat 9, FreeRADIUS 0.9.1, MySQL 3.23.56 and 4.0.15 I am installing in non-standard location using --prefix=PATH and the radius.conf file has this as prefix= so I don't think this should be an issue. Any ideas? Thanks! -- Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Install issues with Redhat and MySQL
Dennis Skinner <[EMAIL PROTECTED]> wrote: > I tried the LD_CONFIG_PATH, modifying ld.so.conf, and --disable-shared > with same results. LD_CONFIG_PATH? Have you tried LD_LIBRARY_PATH? > The rlm_sql_mysql.so file is created and an ldd on it shows it is linked > properly to libmysqlclient.so. Does libmysqlclient need *another* library, like libz? As the FAQ says, FreeRADIUS uses system calls to load libraries. If those calls fail, then your system can't find those libraries, and there's little you can do to FreeRADIUS to fix your system. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Install issues with Redhat and MySQL
Hello all, I searched the archives and read the FAQ regarding this issue. There error message I am getting is: rlm_sql (sql): Could not link driver mysql: file not found rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld. radiusd.conf[504]: sql: Module instantiation failed. When I ran the configure the first time without pointing it to the mysql libs, I got an error. So I added the --with-mysql-include-dir and --with-mysql-lib-dir as instructed. Configured fine (at least with regards to mysql; postgres and company gave error, but I don't use them). I did get some warnings during the make like this for rlm_mysql: warning: assignment discards qualifiers from pointer target type I tried the LD_CONFIG_PATH, modifying ld.so.conf, and --disable-shared with same results. I have mysql client, devel, and shared installed via rpm (version 4.0.15). I downgraded to 3.23 and the only change was that I didn't get the pointer target type warning during the make. The rlm_sql_mysql.so file is created and an ldd on it shows it is linked properly to libmysqlclient.so. Not sure where to go from here. Redhat 9, FreeRADIUS 0.9.1, MySQL 3.23.56 and 4.0.15 I am installing in non-standard location using --prefix=PATH and the radius.conf file has this as prefix= so I don't think this should be an issue. Any ideas? Thanks! -- Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html