[erlang-questions] missing LD_LIBRARY_PATH

Fred Youhanaie fly@REDACTED
Wed Oct 15 16:12:12 CEST 2014

out of interest, does os:getenv() give you LD_LIBRARY_PATH in the list?

and as a long shot :-() does os:getpid() give you 31960?



On 15/10/14 14:37, David Welton wrote:
> Maybe it's the fuzzy headed feeling from a cold, but this is causing
> me to scratch my head:
> less /proc/31960/environ
> SHLVL=3^@LD_LIBRARY_PATH=/opt/foo_web/erts-6.2/lib:/opt/foo_web/erts-6.2/lib:^@OLDPWD=/opt/foo_web^@HOME=/home/foo^@XDG_SESSION_COOKIE=f40ea8cef2068cadd3692765531447e7-1418295886.152876-1882385673^@SSH_TTY=/dev/pts/0^@FOO_JOYSTICK_EXEC=/opt/fooo/bin/gsd-joy3d
> As you can see, LD_LIBRARY_PATH is present.
> However, when I connect to that process, and do os:getenv(), it does
> not show LD_LIBRARY_PATH.  Likewise, os:getenv("LD_LIBRARY_PATH")
> returns false.
> Any idea what might be going on?  I've been grepping around for
> clearenv or putenv or other things that could mess with that, but so
> far without success.
> Thank you,

More information about the erlang-questions mailing list