---------- Forwarded message ---------- From: lisa laam <laam.lisa@gmail.com> Date: 11 juin 2007 12:53 Subject: Help for Jradius and Frreradius To: freeradius-users@lists.freeradius.org Hi all, t rried to install jradius patch for freeradius. I can't use the root account so i installed radius in another directory. (note I'm newbie to Freeradius) 1- first i used freeradius-1.1.3.tar.gz with freeradius-1.1.2.patch. i got no error but the installation dosn't succeed. all the directory are empty bin, sbin, etc, .. 2-secondly i used freeradius-1.1.6.tar.gz with freeradius-1.1.5.patch and here are the errors i got here the commands i used for installation : tar xzf freeradius-1.1.6.tar.gz cd freeradius-1.1.6 #I install the the freeradius-1.1.5.patch wget http://jradius.cvs.sourceforge.net/*che ... .1.5.patch<http://jradius.cvs.sourceforge.net/*checkout*/jradius/jradius/freeradius/patch/freeradius-1.1.2.patch> patch -p1 < freeradius-1.1.5.patch # whene i patch the files i got this failed : patching file raddb/jradius.conf patching file raddb/Makefile Hunk #1 FAILED at 7. 1 out of 1 hunk FAILED -- saving rejects to file raddb/Makefile.rej patching file raddb/radiusd.conf.in patching file raddb/radiusd.conf.in.rej patching file share/dictionary patching file share/dictionary.chillispot patching file share/dictionary.jradius patching file share/dictionary.lancom patching file share/dictionary.ser patching file src/modules/rlm_jradius/configure patching file src/modules/rlm_jradius/jradius.conf patching file src/modules/rlm_jradius/Makefile patching file src/modules/rlm_jradius/rlm_jradius.c patching file src/modules/stable # I follow the installation instructions ./configure --prefix=/software/freeradius make # whene i execute make I got this errors *** Warning: Linking the shared library rlm_perl.la against the *** static library /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a is not portable! gcc -shared .libs/rlm_perl.o -Wl,--rpath -Wl,/home/ouahiba/download/freeradius- 1.1.6/src/lib/.libs -Wl,--rpath -Wl,/software/freeradius/lib /home/ouahiba/download/freeradius-1.1.6/src/lib/.libs/libradius.so -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lc -lcrypt -lnsl -lresolv -lpthread -Wl,-E -Wl,-soname -Wl,rlm_perl- 1.1.6.so -o .libs/rlm_perl- 1.1.6.so /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[6]: *** [rlm_perl.la] Error 1 make[6]: Leaving directory `/home/ouahiba/download/freeradius-1.1.6 /src/modules/rlm_perl' make[5]: *** [common] Error 2 make[5]: Leaving directory `/home/ouahiba/download/freeradius-1.1.6 /src/modules' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/ouahiba/download/freeradius-1.1.6 /src/modules' make[3]: *** [common] Error 2 make[3]: Leaving directory `/home/ouahiba/download/freeradius-1.1.6/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/ouahiba/download/freeradius-1.1.6/src' make[1]: *** [common] Error 2 make[1]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6' make: *** [all] Error 2 # when i execute make install i got sudo make install make[6]: *** [install] Error 1 make[6]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6 /src/modules/rlm_perl' make[5]: *** [common] Error 2 make[5]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6 /src/modules' make[4]: *** [install] Error 2 make[4]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6 /src/modules' make[3]: *** [common] Error 2 make[3]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6/src' make[2]: *** [install] Error 2 make[2]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6/src' make[1]: *** [common] Error 2 make[1]: Leaving directory `/home/ouahiba/download/freeradius- 1.1.6' make: *** [install] Error 2 Please, can somebody tell witch version of freeradius to use with with patch and jradius version. and help me to find out the solution. thanks in advance Lisa.
On 6/12/07, lisa laam <laam.lisa@gmail.com> wrote:
*** Warning: Linking the shared library rlm_perl.la against the *** static library /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a is not portable! gcc -shared .libs/rlm_perl.o -Wl,--rpath -Wl,/home/ouahiba/download/freeradius- 1.1.6/src/lib/.libs -Wl,--rpath -Wl,/software/freeradius/lib /home/ouahiba/download/freeradius-1.1.6/src/lib/.libs/libradius.so -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lc -lcrypt -lnsl -lresolv -lpthread -Wl,-E -Wl,-soname -Wl,rlm_perl- 1.1.6.so -o .libs/rlm_perl- 1.1.6.so /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status
Check if you have -dev perl package installed. Or remove rlm_perl directory if you do not need it. This has already been explained on this list in the past. However, this is unrelated to jradius. th.
Hi, the problem is not the vresion of FreeRADIUS and likely not that patch (what is that patch about anyway?). The problem during compilation is in
/usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[6]: *** [rlm_perl.la] Error 1
You need to have the perl development packages installed (usually called perl-dev or perl-devel). Try again when these are installed. Ciao, Stefan -- Stefan WINTER Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
Stefan Winter wrote:=
/usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[6]: *** [rlm_perl.la] Error 1
You need to have the perl development packages installed (usually called perl-dev or perl-devel). Try again when these are installed.
Taking another look at it, the problem is the following: $ locate libperl ... /var/lib/dpkg/info/libperl5.8.shlibs /usr/lib/libperl.so.5.8 /usr/lib/libperl.so.5.8.8 /usr/share/defoma/libperl-file.pl ... There's no libperl.so. The ".so's" are usually a soft link to the ".so.X.Y" files. In this case, it looks like the soft link wasn't created. There's also no "libperl.a". Also on the same system: $ perl -MExtUtils::Embed -e ldopts -Wl,-E -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt i.e. When you ask *Perl* what it thinks the LD flags should be, it returns "-lperl", and not "-lperl.so.5.8". Since the "5.8" file is the only libperl on the system, I would suggest that the Perl installation is broken. This is on Ubuntu. I'm going to file a bug with them. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
Thanks for your response, Now when i execute radiusd i got this & radiusd The program 'radiusd' can be found in the following packages: * radiusd-livingston * yardradius * xtradius Try: sudo apt-get install <selected package> Make sure you have the 'universe' component enabled bash: radiusd: command not found what's wrong? note I exported the prefix i used in the ./configure in the PATH variable. 2007/6/12, Stefan Winter <stefan.winter@restena.lu>:
Hi,
the problem is not the vresion of FreeRADIUS and likely not that patch (what is that patch about anyway?). The problem during compilation is in
/usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[6]: *** [rlm_perl.la] Error 1
You need to have the perl development packages installed (usually called perl-dev or perl-devel). Try again when these are installed.
Ciao,
Stefan
-- Stefan WINTER
Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung
6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Ouahiba MACHANI wrote: ...
The program 'radiusd' can be found in the following packages: * radiusd-livingston * yardradius * xtradius Try: sudo apt-get install <selected package> Make sure you have the 'universe' component enabled bash: radiusd: command not found
Why do people insist on advertising programs that haven't been maintained for years?
what's wrong? note I exported the prefix i used in the ./configure in the PATH variable.
/usr/sbin is in $PATH before the prefix you exported. Please pick up a "Unix sysadmin 101" book. All of this is explained there. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
/usr/sbin is in $PATH before the prefix you exported.
Please pick up a "Unix sysadmin 101" book. All of this is explained there.
May you please examine my question instead of teaching basics of unix shell? I also want to be taught of some basics %) -- Olimp, System Administrator IT Dept. Fax. +380(62)381-3428 Tel. +380(62)381-3978-5 ---- Looking forward to reading yours. RUFF-RIPE DI76-GANDI RUFF-6BONE Ruslan N. Marchenko
now radiusd work. first it dosn't found the jradius.conf file in etc/raddb as expected so I copied the jradius.conf in etc/raddb, and but I got this errors : Module: Loaded preprocess preprocess: huntgroups = "/opt/freeradius/etc/raddb/huntgroups" preprocess: hints = "/opt/freeradius/etc/raddb/hints" preprocess: with_ascend_hack = no preprocess: ascend_channels_per_line = 23 preprocess: with_ntdomain_hack = no preprocess: with_specialix_jetstream_hack = no preprocess: with_cisco_vsa_hack = no preprocess: with_alvarion_vsa_hack = no /opt/freeradius/etc/raddb/hints[37]: Parse error (check) for entry DEFAULT: Unknown value Yes for attribute Strip-User-Name rlm_preprocess: Error reading /opt/freeradius/etc/raddb/hints radiusd.conf[1046]: preprocess: Module instantiation failed. radiusd.conf[1826] Unknown module "preprocess". radiusd.conf[1816] Failed to parse authorize section. please, help! is there any one how managed to install freeradius with jradius ?? 2007/6/12, Ruslan N. Marchenko <ruff@olimp.ua>:
/usr/sbin is in $PATH before the prefix you exported.
Please pick up a "Unix sysadmin 101" book. All of this is explained there.
May you please examine my question instead of teaching basics of unix shell? I also want to be taught of some basics %)
-- Olimp, System Administrator IT Dept. Fax. +380(62)381-3428 Tel. +380(62)381-3978-5 ---- Looking forward to reading yours. RUFF-RIPE DI76-GANDI RUFF-6BONE Ruslan N. Marchenko - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Ouahiba MACHANI wrote: ...
/opt/freeradius/etc/raddb/hints[37]: Parse error (check) for entry DEFAULT: Unknown value Yes for attribute Strip-User-Name rlm_preprocess: Error reading /opt/freeradius/etc/raddb/hints
You have previously installed another RADIUS server on that machine, which uses different dictionaries. Make sure that FreeRADIUS is using the dictionaries that come with FreeRADIUS. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
participants (6)
-
Alan Dekok -
lisa laam -
Ouahiba MACHANI -
Ruslan N. Marchenko -
Stefan Winter -
Tomas Hoger