[ale] How do I force a specific version of a shared library to be loaded/used?

Jim ale_nospam at fayettedigital.com
Mon Jun 19 20:44:45 EDT 2006


Thanks....
JK wrote:
>>     
>
> But LD_LIBRARY_PATH will not necessarily cause a specific
> *version* of a lib to be loaded. It just tells ld.so which
> directories to look in to find libs. If you put the version
> you want loaded in a particular dir and then add that dir
> to the beginning of LD_LIBRARY_PATH, that will probably
> do what you want. However, there's an easier way: add the
> exact library you want to use to LD_PRELOAD.  The contents
> of that environment variable is a list of .so files to be
> loaded before anything else; symbols in those libraries will
> resolve first, so additional libs will only be loaded in
> order to resolve symbols not found in the LD_PRELOAD library
> list. (This is all described in "man ld.so", in the
> ENVIRONMENT section.)
>
> -- JK
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
>
>
>   




More information about the Ale mailing list