Using two same shared libs

Using two same shared libs

Shachar Shemesh shachar at shemesh.biz
Sat Apr 2 14:47:12 IDT 2011


On 02/04/11 14:34, Dan Shimshoni wrote:

> Hi,
> For development and debugging needs I created my own version of libpam.so.0.
> I want to run my application with this verson of libpam.so.0.
> However, I don't want to replace /lib64/libpam.so.0  with
> the libpam.so.0 I created, since it is from a dirrenet release of
> libpam, and it will probably make problem with other essential programs
> which uses it, like "/bin/login". Even if not, I would really want to get
> an answer to this question: can you tell an application you run (let's
> say it is
> called "myapp") to use
> a specifed library (which is located **not** in the default place for libraries,
> like /lib or /lib64/, but elsewhere, like /work/myLibs? )
> and assuming that other programs, which are running and cannot be stopped,
> like login, are using a library with the same name, like libpam.so.0 in this
> case?)
>
> DS
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>    
RTFM ld.so

In particular, look for LD_LIBRARY_PATH

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com




More information about the Linux-il mailing list