Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-10-2007, 09:32 PM
Frank
 
Posts: n/a
Default Running binary with different libraries

Hi,

is it possible to start apps link to a library to use library from a
specified location?
For example I have an app which needs libssl.so.0 By default this
library is in /usr/lib or /usr/local/lib depending on the distro. For
testing purposes I have compiled openssl into /usr/local/openssl-0.9.7m/
This way I'm sure I don't screw up something running.

But how can I force an app when I exec it to use the .so file from
/usr/local/openssl-0.9.7m/ ?
When I specify the path in an environment var LD_LIBRARY_PATH output
from ldd %mybinary% show the right path. But once running it has the
library open from the default location.

How can I 'force' it to use the library from the right location other
than compiling the app static and messing with ld.so.conf and ldconfig.


Regards,


Frank

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:58 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.