Closed amarux closed 1 year ago
Have you seen this issue? https://github.com/Alexander-Barth/NCDatasets.jl/issues/191
What is the output of the shell command echo $LD_LIBRARY_PATH
and echo $LD_PRELOAD
.
And the julia command versioninfo()
?
I took a look at #191. So, I followed your suggestions and ran the following commands in the Linux terminal:
LD_LIBRARY_PATH=
LD_PRELOAD=
julia
Then, I was able to use NCDatasets without any problem.
In my case the output of
echo $LD_LIBRARY_PATH
is:
:/usr/lib/x86_64-linux-gnu/
echo $LD_PRELOAD
:
* Julia `sessioninfo()`
Julia Version 1.8.5 Commit 17cfb8e65ea (2023-01-08 06:45 UTC) Platform Info: OS: Linux (x86_64-linux-gnu) CPU: 4 × Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-13.0.1 (ORCJIT, broadwell) Threads: 4 on 4 virtual cores Environment: LD_LIBRARY_PATH = :/usr/lib/x86_64-linux-gnu/ JULIA_NUM_THREADS = 4
Finally, I checked my .bashrc file. I had added a line defining the LD_LIBRARY_PATH (I do not remember why).
I commented that line in my .bashrc, and now NCDatasets works perfect.
If I required LD_LIBRARY_PATH in the future I will try to found an alternative solution than to define it in the .bashrc. By now, removing it solved the issue with NCDatasets.
Thank you so much!
Thank you for your confirmation! Maybe someone should write a blog post "LD_LIBRARY_PATH considered hamful"... Oh actually, I just found out there is already one :-).
(I updated the "known issue" section of the documentation).
I found problems to install NCDatasets in a fresh installation of Julia 1.8.5 on Ubuntu 22.04.
I downloaded Julia from the official website (https://julialang.org/downloads/).
To install the package I used
Pkg.add("NCDatasets")
and it resulted in the following message:Then, I used
Pkg.precompile()
as indicated above that leads to this message:As the error is related to the libnetcdf library, I tried to install it using conda, but it does not solve the problem. Could you suggest me a way to fix this issue?
Thank you very much