Nasser Heidari

2012-08-05

Freeradius – Problem with rlm_perl

Filed under: Linux — Nasser Heidari @ 13:46
Tags:

There is a problem in debian/ubuntu that when you use rlm_perl module, freeradius will fail to start.

——
root@debian:/etc/freeradius# /etc/init.d/freeradius restart
Stopping FreeRADIUS daemon: freeradius/var/run/freeradius/freeradius.pid not found….
Starting FreeRADIUS daemon: freeradiusCan’t load ‘/usr/lib/perl5/auto/DBI/DBI.so’ for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 192.
at /usr/lib/perl5/DBI.pm line 265
BEGIN failed–compilation aborted at /usr/lib/perl5/DBI.pm line 265.
Compilation failed in require at /etc/freeradius/dump.pl line 2.
BEGIN failed–compilation aborted at /etc/freeradius/dump.pl line 2.
failed!

——

after a little googleing I find out solution, all you need is to preload perl library:

LD_PRELOAD=/usr/lib/libperl.so.5.10.1 /usr/sbin/freeradius -X

Note: you will need to find out your perl library path:
# find /usr/lib/ -name “libperl.so*”

you also need to update your init script just like this :

LD_PRELOAD=/usr/lib/libperl.so.5.10.1 start-stop-daemon –start –quiet –pidfile $PIDFILE –exec $PROGRAM — $FREERADIUS_OPTIONS ……

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: