[sane-devel] Re: Re: Re: epson 3490 - transparency unit problem

m. allan noah anoah at pfeiffer.edu
Mon Nov 14 17:20:59 UTC 2005


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

or, even better, add /usr/local/lib to /etc/ld.so.conf, and then run 
ldconfig. this will make it more permanent than the env var, which is 
often not available from within cron, etc. (not that many people other 
than me do anything with sane from cron :)

allan

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera



More information about the sane-devel mailing list