Re: Path for Linux .so fies
- Posted by andy at systemzone.freeserve.co.uk Sep 25, 2003
- 424 views
Hello Jonas, Linux (and other UNIX implementations) don't use the PATH environment variable to find shared libraries. Another environment variable is used. On HP-UX for example the environment variable is LD_LIBRARY_PATH. On other UNIX's I think it might be LIBPATH or something like that. If the particular environment variable for shared library location is not defined then I think the default is to look in /lib and /usr/lib only. I believe that by default it will not search the current directory. Where is your library located? If you have permission on your Linux box get the library copied to /lib and/or /usr/lib and see if you can open_dll without the full pathname. Good luck. Regards, Andy Cranston. At 03:57 24/09/03 +0000, you wrote: > > >All, > >Boy, talk about culture shock! > >I began working in earnest on a Linux port for my iSeries Toolbox for >Euphoria and ran into a slight problem (maybe just a difference between >Windows and Linux). > >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? > >Thanks! > >Jonas > >--^---------------------------------------------------------------- >This email was sent to: andy at systemzone.freeserve.co.uk > > >TOPICA - Start your own email discussion group. FREE! > >