1. RE: Path for Linux .so fies
Thanks Irv!
It's so nice to ask a question and get a quick answer!
I'll take a look at the environment variable, as suggested.
BTW, I'm also using your GTK library as well...nice work!
Jonas
eugtk at yahoo.com wrote:
>
>
> --- 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
>
>
2. RE: Path for Linux .so fies
Andy,
Thanks for the tip!
These libs are in /usr/share/ca400/lib. I'll take a look at the other
environment variables as well.
Thanks again,
Jonas
andy at systemzone.freeserve.co.uk wrote:
>
>
> 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!
> >
> >