Closed yakir12 closed 2 years ago
Bump.
I've since then upgraded Julia:
julia> versioninfo()
Julia Version 1.7.1
Commit ac5cc99908* (2021-12-22 19:35 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.0 (ORCJIT, skylake)
Thanks for the error report. I'll take a look at this later this week to see if there's a fix.
Could you dig around your folders to try to find a libmx library?
Basically it looks like this library is not where we expect it to live ERROR: LoadError: could not load library "/usr/local/bin/glnxa64/libmx"
I found these:
find / -name libmx*
/usr/lib/libmxml.so.1
/usr/lib/libmxml.so
/usr/lib/libmxml.so.1.6
/usr/local/MATLAB/R2020b/bin/glnxa64/libmx.so
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
So I tried
rm /usr/local/MATLAB/R2020b/bin/glnxa64/libmx.so
ln -s /usr/lib/libmxml.so /usr/local/MATLAB/R2020b/bin/glnxa64/libmx.so
but now matlab doesn't start, and I have the same error when trying to build MATLAB.jl (libmx missing).
You'll have to re-run build in Julia if you make those changes.
Have you tried to explicitly set the "MATLAB_ROOT"
environment variable to your matlab path /usr/local/MATLAB/R2020b
then rerun the build process?
If you look at this function https://github.com/JuliaInterop/MATLAB.jl/blob/master/deps/build.jl#L5 we actually don't check usr/local
on linux systems. This is probably something I should add after we confirm the manual method above works with you.
explicitly set the "MATLAB_ROOT" environment variable
fixed it! So yeah, adding usr/local
might be a good idea. I'll happily test it once you're merged.
I've just installed matlab 2020b (tested it as well), and when I try to build MATLAB.jl I get an error about not finding
libmx
:I'm on: