Re[6]: freeradius2 installation error
Dear All, i installed FR v 2.1.2 and mysql 5.1.55. user database is in mysql DB. 1. I was lucky to auth Wifi users via cisco AP (NAS type cisco). but Simulteneous-Use is not working. 2. my wimax users (vendor Alvarion) cannot authenticate. Althou, i can authenticate them from users file. what can be a problem? thanks. 06 декабря 2011, 20:12 от "Fajar A. Nugraha-2 [via FreeRadius]" : On Tue, Dec 6, 2011 at 10:51 PM, [hidden email] <[hidden email]> wrote: > Dear Fajar, > > i failed to intergate FR + mysql, i was informed that my FR is without mysql > module. then why didn't you ask that in the first place? It'd save lots of time. > > i am in process of building from the source. > so, > after: > 1. i build mysql-server Not necessarily. Binary tar/package from http://dev.mysql.com/downloads/mysql should also work. Personally, I'd avoid having to build mysql from source. It takes a VERY long time. Also, you don't really need the server. FR only needs the client part (with corresponding headers/libs). Anyway, whatever method you use (build from ports, compile manually, installing binary package, whatever) you need to make sure that mysql headers and libraries are available. One way (though not the ONLY way) to verify this is by running "mysql_config", then look at "include" and "libs" output, then see if the files are there. For example, on my Ubuntu box: #= $ mysql_config Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -fno-omit-frame-pointer -g -pipe -Wno-uninitialized -DUNIV_LINUX] --include [-I/usr/include/mysql] --libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient -L/usr/lib/ -lssl -lcrypto] --libs_r [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r -L/usr/lib/ -lssl -lcrypto] --plugindir [/usr/lib/mysql/plugin] --socket [/var/run/mysqld/mysqld.sock] --port [0] --version [5.3.2-MariaDB-beta] --libmysqld-libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqld -ldl -lwrap -lrt -L/usr/lib/ -lssl -lcrypto] $ ls /usr/include/mysql/ client_plugin.h my_alloc.h my_getopt.h mysqld_ername.h my_valgrind.h services.h typelib.h decimal.h my_attribute.h my_global.h mysqld_error.h my_xml.h service_thd_alloc.h errmsg.h my_compiler.h my_list.h mysql_embed.h plugin_auth_common.h sql_common.h keycache.h my_config.h my_net.h mysql.h plugin_auth.h sql_state.h ma_dyncol.h my_dbug.h my_no_pthread.h mysql_time.h plugin.h sslopt-case.h m_ctype.h my_decimal_limits.h my_pthread.h mysql_version.h service_my_snprintf.h sslopt-longopts.h m_string.h my_dir.h mysql_com.h my_sys.h service_progress_report.h sslopt-vars.h $ ls /usr/lib /*mysqlclient* /usr/lib/libmysqlclient.a /usr/lib/libmysqlclient_r.so /usr/lib/libmysqlclient_r.so.16.0.0 /usr/lib/libmysqlclient.so.16 /usr/lib/libmysqlclient.la /usr/lib/libmysqlclient_r.so.15 /usr/lib/libmysqlclient.so /usr/lib/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient_r.a /usr/lib/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient.so.15 /usr/lib/libmysqlclient_r.la /usr/lib/libmysqlclient_r.so.16 /usr/lib/libmysqlclient.so.15.0.0 #= > 2. install mysql driver for Rf > > correct? Just build freeradius following the simple instruction in the wiki. IF mysql headers and drivers are there, AND you have a working mysql_config somewhere (/usr/bin/, /usr/local/bin, whatever) then mysql support should be built in by default. However, IF the headers/libs are NOT in the default places, you might have to specify some parameters to configure: --with-mysql-include-dir=DIR Directory where the mysql includes may be found --with-mysql-lib-dir=DIR Directory where the mysql libraries may be found --with-mysql-dir=DIR Base directory where mysql is installed In any case, make sure you READ the output from ./configure. Hint: it's easier to do so if you redirect the output to a file, something like ./configure | tee configure-output.txt The output should show whether the configure script was able to find mysql headers/libs or not. -- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- If you reply to this email, your message will be added to the discussion below: http://freeradius.1045715.n5.nabble.com/freeradius2-installation-error-tp5052326p5052587.html To unsubscribe from freeradius2 installation error, click here. NAML
Re[6]: freeradius2 installation error
thanks for great explanation. i could install Fr from ports (the main problem was in ldap, so i installed without ldap) BR 06 декабря 2011, 20:13 от "Fajar A. Nugraha" : > On Tue, Dec 6, 2011 at 10:51 PM, tolik_shavlov...@mail.ru > wrote: > > Dear Fajar, > > > > i failed to intergate FR + mysql, i was informed that my FR is without mysql > > module. > > then why didn't you ask that in the first place? It'd save lots of time. > > > > > i am in process of building from the source. > > so, > > after: > > 1. i build mysql-server > > Not necessarily. Binary tar/package from > http://dev.mysql.com/downloads/mysql should also work. Personally, I'd > avoid having to build mysql from source. It takes a VERY long time. > Also, you don't really need the server. FR only needs the client part > (with corresponding headers/libs). > > Anyway, whatever method you use (build from ports, compile manually, > installing binary package, whatever) you need to make sure that mysql > headers and libraries are available. One way (though not the ONLY way) > to verify this is by running "mysql_config", then look at "include" > and "libs" output, then see if the files are there. For example, on my > Ubuntu box: > > #= > $ mysql_config > Usage: /usr/bin/mysql_config [OPTIONS] > Options: > --cflags [-I/usr/include/mysql > -fno-omit-frame-pointer -g -pipe -Wno-uninitialized -DUNIV_LINUX] > --include[-I/usr/include/mysql] > --libs [-Wl,-Bsymbolic-functions -rdynamic > -L/usr/lib/mysql -lmysqlclient -L/usr/lib/ -lssl -lcrypto] > --libs_r [-Wl,-Bsymbolic-functions -rdynamic > -L/usr/lib/mysql -lmysqlclient_r -L/usr/lib/ -lssl -lcrypto] > --plugindir [/usr/lib/mysql/plugin] > --socket [/var/run/mysqld/mysqld.sock] > --port [0] > --version[5.3.2-MariaDB-beta] > --libmysqld-libs [-Wl,-Bsymbolic-functions -rdynamic > -L/usr/lib/mysql -lmysqld -ldl -lwrap -lrt -L/usr/lib/ -lssl -lcrypto] > > $ ls /usr/include/mysql/ > client_plugin.h my_alloc.h my_getopt.h mysqld_ername.h > my_valgrind.h services.h typelib.h > decimal.hmy_attribute.h my_global.h mysqld_error.h > my_xml.h service_thd_alloc.h > errmsg.h my_compiler.hmy_list.hmysql_embed.h > plugin_auth_common.h sql_common.h > keycache.h my_config.h my_net.h mysql.h > plugin_auth.h sql_state.h > ma_dyncol.h my_dbug.hmy_no_pthread.h mysql_time.h > plugin.h sslopt-case.h > m_ctype.hmy_decimal_limits.h my_pthread.h mysql_version.h > service_my_snprintf.h sslopt-longopts.h > m_string.h my_dir.h mysql_com.h my_sys.h > service_progress_report.h sslopt-vars.h > > $ ls /usr/lib/*mysqlclient* > /usr/lib/libmysqlclient.a /usr/lib/libmysqlclient_r.so > /usr/lib/libmysqlclient_r.so.16.0.0 /usr/lib/libmysqlclient.so.16 > /usr/lib/libmysqlclient.la/usr/lib/libmysqlclient_r.so.15 > /usr/lib/libmysqlclient.so /usr/lib/libmysqlclient.so.16.0.0 > /usr/lib/libmysqlclient_r.a /usr/lib/libmysqlclient_r.so.15.0.0 > /usr/lib/libmysqlclient.so.15 > /usr/lib/libmysqlclient_r.la /usr/lib/libmysqlclient_r.so.16 > /usr/lib/libmysqlclient.so.15.0.0 > #= > > > 2. install mysql driver for Rf > > > > correct? > > Just build freeradius following the simple instruction in the wiki. > > IF mysql headers and drivers are there, AND you have a working > mysql_config somewhere (/usr/bin/, /usr/local/bin, whatever) then > mysql support should be built in by default. > > However, IF the headers/libs are NOT in the default places, you might > have to specify some parameters to configure: > > --with-mysql-include-dir=DIR > Directory where the mysql includes may be found > --with-mysql-lib-dir=DIR > Directory where the mysql libraries may be found > --with-mysql-dir=DIRBase directory where mysql is installed > > In any case, make sure you READ the output from ./configure. Hint: > it's easier to do so if you redirect the output to a file, something > like > > ./configure | tee configure-output.txt > > The output should show whether the configure script was able to find > mysql headers/libs or not. > > -- > Fajar > > - > 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[6]: freeradius2 installation error
cd freeradius2 freebsd_v8# make ===> Vulnerability check disabled, database not found ===> License GPLv2 accepted by the user ===> Found saved configuration for freeradius-2.1.12 ===> Extracting for freeradius-2.1.12 => SHA256 Checksum OK for freeradius-server-2.1.12.tar.bz2. ===> freeradius-2.1.12 depends on file: /usr/local/bin/perl5.12.4 - found ===> Patching for freeradius-2.1.12 ===> freeradius-2.1.12 depends on file: /usr/local/bin/perl5.12.4 - found ===> Applying FreeBSD patches for freeradius-2.1.12 ===> freeradius-2.1.12 depends on executable: gmake - found ===> freeradius-2.1.12 depends on file: /usr/local/bin/perl5.12.4 - found ===> freeradius-2.1.12 depends on file: /usr/local/bin/autoconf-2.68 - found ===> freeradius-2.1.12 depends on package: libtool>=2.4 - found ===> freeradius-2.1.12 depends on shared library: gdbm.4 - found ===> freeradius-2.1.12 depends on shared library: krb5.26 - not found ===> Verifying install for krb5.26 in /usr/ports/security/heimdal ===> heimdal-1.4_1 depends on file: /usr/local/lib/libcrack.a - found ===> heimdal-1.4_1 depends on file: /usr/local/bin/autoconf-2.68 - found ===> heimdal-1.4_1 depends on package: libtool>=2.4 - found ===> heimdal-1.4_1 depends on executable: pkg-config - found ===> heimdal-1.4_1 depends on shared library: ldap-2.4.8 - not found ===> Verifying install for ldap-2.4.8 in /usr/ports/net/openldap24-client ===> openldap-sasl-client-2.4.26 depends on package: libtool>=2.4 - found ===> openldap-sasl-client-2.4.26 depends on shared library: sasl2.2 - not found ===> Verifying install for sasl2.2 in /usr/ports/security/cyrus-sasl2 ===> cyrus-sasl-2.1.25_1 is marked as broken: SQLITE and SQLITE3 are mutually exclusive.. *** Error code 1 Stop in /usr/ports/security/cyrus-sasl2. *** Error code 1 Stop in /usr/ports/net/openldap24-client. *** Error code 1 Stop in /usr/ports/net/openldap24-client. *** Error code 1 Stop in /usr/ports/security/heimdal. *** Error code 1 Stop in /usr/ports/security/heimdal. *** Error code 1 Stop in /tmp/freeradius2. *** Error code 1 Stop in /tmp/freeradius2. the same while installing from source(( 06 декабря 2011, 20:12 от "Fajar A. Nugraha-2 [via FreeRadius]" : On Tue, Dec 6, 2011 at 10:51 PM, [hidden email] <[hidden email]> wrote: > Dear Fajar, > > i failed to intergate FR + mysql, i was informed that my FR is without mysql > module. then why didn't you ask that in the first place? It'd save lots of time. > > i am in process of building from the source. > so, > after: > 1. i build mysql-server Not necessarily. Binary tar/package from http://dev.mysql.com/downloads/mysql should also work. Personally, I'd avoid having to build mysql from source. It takes a VERY long time. Also, you don't really need the server. FR only needs the client part (with corresponding headers/libs). Anyway, whatever method you use (build from ports, compile manually, installing binary package, whatever) you need to make sure that mysql headers and libraries are available. One way (though not the ONLY way) to verify this is by running "mysql_config", then look at "include" and "libs" output, then see if the files are there. For example, on my Ubuntu box: #= $ mysql_config Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -fno-omit-frame-pointer -g -pipe -Wno-uninitialized -DUNIV_LINUX] --include [-I/usr/include/mysql] --libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient -L/usr/lib/ -lssl -lcrypto] --libs_r [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r -L/usr/lib/ -lssl -lcrypto] --plugindir [/usr/lib/mysql/plugin] --socket [/var/run/mysqld/mysqld.sock] --port [0] --version [5.3.2-MariaDB-beta] --libmysqld-libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqld -ldl -lwrap -lrt -L/usr/lib/ -lssl -lcrypto] $ ls /usr/include/mysql/ client_plugin.h my_alloc.h my_getopt.h mysqld_ername.h my_valgrind.h services.h typelib.h decimal.h my_attribute.h my_global.h mysqld_error.h my_xml.h service_thd_alloc.h errmsg.h my_compiler.h my_list.h mysql_embed.h plugin_auth_common.h sql_common.h keycache.h my_config.h my_net.h mysql.h plugin_auth.h sql_state.h ma_dyncol.h my_dbug.h my_no_pthread.h mysql_time.h plugin.h sslopt-case.h m_ctype.h my_decimal_limits.h my_pthread.h mysql_version.h service_my_snprintf.h sslopt-longopts.h m_string.h my_dir.h mysql_com.h my_sys.h service_progress_report.h sslopt-vars.h $ ls /usr/lib /*mysqlclient* /usr/lib/libmysqlclient.a /usr/lib/libmysqlclient_r.so /usr/lib/libmysqlclient_r.so.16.0.0 /usr/lib/l