[mythtv] Noob linux developer question
Greg Estabrooks
greg at phaze.org
Fri Apr 27 11:34:30 UTC 2007
> > Is it possible to change some configuration so that when testing a
> > binary (like mythshutdown), it uses the just compiled version of the
> > shared library, instead of the installed one?
>
> Yes, of course. man LD_LIBRARY_PATH
> LD_LIBRARY_PATH="${mythtv_source_path}/libs/libmythtv" mythshutdown will
You can also use LD_PRELOAD to preload a library so when the binary is run
the preloaded one will be used and not the one in your regular library path.
Thus forcing the use of a specific library.
LD_PRELOAD=/path/to/library/libmythtv-0.20.so.0 mythshutdown
for a one off execution, or you can use the following so that for the
duration of your shell being open it would be used
export LD_PRELOAD=/path/to/library/libmythtv-0.20.so.0
mythshutdown
More information about the mythtv-dev
mailing list