On siam-linux20, if JULIA_PROJ is set, julia_connect() fails with:
Error: Error happens in Julia.
InitError: could not load library "/home/EAWAG/lavended/.julia/artifacts/4a6fe8c6eda7f19d80afb858eb9f7cbe312f1453/lib/libnetcdf.so"
libhdf5_hl.so.310: cannot open shared object file: No such file or directory
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:120
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl ./libdl.jl:119
[3] macro expansion
@ ~/.julia/packages/JLLWrappers/GfYNv/src/products/library_generators.jl:63 [inlined]
[4] __init__()
@ NetCDF_jll ~/.julia/packages/NetCDF_jll/BCx4u/src/wrappers/x86_64-linux-gnu.jl:17
[5] run_module_init(mod::Module, i::Int64)
@ Base ./loading.jl:1378
[6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1366
[7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
@ Base ./loading.jl:125
This happens on RStudio Server, even if R is run from the Terminal after having unset LD_LIBRARY_PATH.
If JULIA_PROJ is not set, julia_connect() works.
I haven't tested whether this is an issue on other Linux machines/distributions.
> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Debian GNU/Linux 11 (bullseye)
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/Zurich
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.2 tools_4.4.2 rstudioapi_0.17.1
The workaround for now on Linux is to avoid setting JULIA_PROJ.
On
siam-linux20, ifJULIA_PROJis set,julia_connect()fails with:This happens on RStudio Server, even if
Ris run from the Terminal after having unsetLD_LIBRARY_PATH.If
JULIA_PROJis not set,julia_connect()works.I haven't tested whether this is an issue on other
Linuxmachines/distributions.The workaround for now on Linux is to avoid setting
JULIA_PROJ.