LD_LIBRARY_PATH : how to find a shared object
        Posted  
        
            by CuriousDawg
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by CuriousDawg
        
        
        
        Published on 2010-04-07T00:21:30Z
        Indexed on 
            2010/04/07
            0:23 UTC
        
        
        Read the original article
        Hit count: 625
        
linux
I have a shared object ( libxyz.so ). Given LD_LIBRARY_PATH, how can find the exact location of this shared object? If i had a binary that depends on this lib, i would have used ldd on that.
Here is the reason why i ask: I have a cgi script which works when using LD_LIBRARY_PATH set to say VALUE1. It does not work when the path is set to VALUE2. I would like to find the exact location of the library as specified by the path in VALUE1 ( Note that VALUE1 has almost 20+ different locations )
Platform: Linux
© Stack Overflow or respective owner