On Mon, 14 Nov 2005 [email protected] wrote:

> Selon Jim MacLeod <[email protected]>:
>
>>> So we use the same backend and firmware with a different result.
>>>
>>> Should it be due to my installation : I've make and installed the cvs code
>>> in /usr/local without uninstalling the debian version which is in /usr
>>>
>> In order to use Kooka (KDE scanner prog) I start it from a console with
>>
>> LD_PRELOAD=/usr/local/lib/libsane.so kooka
>>
>> There is probably a much neater way of doing things but it works. Hopefully
>> the backend will be in a Kubuntu release eventually.
>>
>> Jim
>>
>
> I will try this command line this evening. Thanks for the trick.

LD_PRELOAD ? Why not just set the LD_LIBRARY_PATH environment variable to 
look up /usr/local/lib first ? AFAIK this is the only way to properly 
force select programs to use a different library search path. Preloading 
just one library may not be enough - e.g. any dynamically loaded libraries 
would still be loaded from other directories. IIRC the default library 
path for the linux ld.so loader is /usr/lib:/lib ...


Regards,

Theodoros Kalamatianos

Reply via email to