[plt-scheme] mzgtk2 - LD_LIBRARY_PATH
I solved this using dlopen with RTLD_NOW and RTLD_GLOBAL.
--Hans
Hans Oesterholt schreef:
> Dear All,
>
> I'm trying to do (putenv "LD_LIBRARY_PATH" "/a/b/c")
> to set the right linker path for dynamic libraries on Linux
> from within mzscheme.
>
> However it doesn't work, because when requiring mzgtk2.
> the shared library cannot be found.
>
> When I do
>
> export LD_LIBRARY_PATH=/a/b/c
> mzscheme
> >(require (lib "mzgtk2.scm" "mzgtk2"))
>
> There are no problems.
>
> But, as part of a bootstrap process while loading mzgtk2,
> I would like to set the LD_LIBRARY_PATH env variable
> automagically.
>
> Does anyone have ideas?
>
> Thanks in advance,
>
> --Hans
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme