libradius error

Roberto Greiner mrgreiner at gmail.com
Wed Apr 25 14:37:52 CEST 2007


Alan DeKok wrote:
> Roberto Greiner wrote:
>   
>> When I give a 'radwho' command, I receive the following error:
>> radwho: error while loading shared libraries: libradius-1.1.6.so: cannot
>> open shared object file: No such file or directory
>>     
>
>   Try doing: ldd radwho
>   
ibatubi:~# ldd /usr/bin/radwho
        libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7f25000)
        libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7f12000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7eff000)
        libradius-1.1.6.so => /usr/lib/freeradius/libradius-1.1.6.so
(0xb7ee8000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7db7000)
        /lib/ld-linux.so.2 (0xb7f43000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7d89000)
ibatubi:~# radwho
radwho: error while loading shared libraries: libradius-1.1.6.so: cannot
open shared object file: No such file or directory
ibatubi:~# locate libradius-1.1.6.so
/usr/lib/freeradius/libradius-1.1.6.so

If I understood it correctly, radwho is looking at the correct place.
I've tried to uninstall everything again, checking if that library was
removed (it was), and then reinstalling. The error remains. Any ideas?

>   
>> The mentioned libradius file is in /usr/lib/freeradius
>>     
>
>   Hmm... that's likely the issue.  The dynamic linker doesn't know about
> /usr/lib/freeradius, and radwho isnt' smart enough to read the config
> files & set up libdir appropriately.
>
>   
Hmmm, I suppose that I should then compile it with static libraries,
right? What would be the appropriate way to do it? The wiki only has the
default way, and I couldn't find info in 'man dpkg-buildpackage' about it.

Thank you very much,

Marcos Roberto Greiner

-- 
  -----------------------------------------------------
                Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
    Os pessimistas tem medo de que isto seja verdade
                                       Murphy
  -----------------------------------------------------




More information about the Freeradius-Users mailing list