ENV["LD_LIBRARY_PATH"] is empty

How comes I get

julia> @show ENV["LD_LIBRARY_PATH"]
ERROR: KeyError: key "LD_LIBRARY_PATH" not found
Stacktrace:
 [1] access_env(::Base.##288#289, ::String) at ./env.jl:45
 [2] getindex(::Base.EnvHash, ::String) at ./env.jl:78

while the variable has been set correctly:

mposs@mposs-HP-EliteBook-Folio-1040-G3:~$ echo $LD_LIBRARY_PATH
:/opt/ibm/ILOG/CPLEX_Studio127/cplex/bin/x86-64_linux

The PATH variable works properly though:


julia> @show ENV["PATH"]
ENV["PATH"] = "/home/mposs/bin:/home/mposs/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/mposs/julia/bin:/home/mposs/julia:/home/mposs/cplex/bin/x86-64_linux"
"/home/mposs/bin:/home/mposs/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/mposs/julia/bin:/home/mposs/julia:/home/mposs/cplex/bin/x86-64_linux"
2 Likes