libradius error

Roberto Greiner mrgreiner at gmail.com
Wed Apr 25 15:05:20 CEST 2007


Roberto Greiner wrote:
> 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?
>   
I've tried another way, setting 'LD_LIBRARY_PATH=/usr/lib/freeradius/',
but now I'm getting a new error:
ibatubi:/etc# radwho
Wed Apr 25 09:58:08 2007 : Error: Unable to open file
"/usr/local/etc/raddb/radiusd.conf": No such file or directory
radwho: Error reading radiusd.conf.

Linking that folder (a temporary measure to see if it works), gives me
yet another error:
ibatubi:/var/log/freeradius# radwho
radwho: Error reading /var/log/freeradius/radutmp: No such file or directory

The impression I get is that there was something wrong in the configs
for radwho when it was compiled by dpkg-buildpackage instead of using
the standard configure/make/make install.

>   
>>   
>>     
>>> 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