Re: Path for Linux .so fies
- Posted by eugtk at yahoo.com
Sep 24, 2003
--- Jonas Temple <jtemple at yhti.net> wrote:
> In Windows when you use open_dll() it searches the
> path for the .dll.
> Obviously not so in Linux. I had to specifically
> spell out the path to
> the .so! Is this just a difference between the two
> or am I missing
> something?
You're missing something :)
Basically, it looks for the .so in /usr/lib, and
then in /lib, so that's where the file should be put.
If you don't want to do that, you can set the
environment variable LD_LIBRARY_PATH to point to where
the .so is located.
Or, you can run ldconfig to set up links to .so files
in other non-standard places.
Type 'man ld.so' and 'man ldconfig' to see how Linux
handles these things.
Irv
|
Not Categorized, Please Help
|
|