-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
First of all, thanks for this package – it helps my student write a bit to compare his Julia code to some Matlab code.
Just that on my machine I am not able to compile, the error message is
Pkg.build("MATLAB")
Building MATLAB → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/e263657fe013cb02450c5d4210d2c50a354a5e08/build.log`
ERROR: Error building `MATLAB`:
[ Info: Detected MATLAB root folder at "/Applications/MATLAB_R2023a.app"
[ Info: Detected MATLAB library path at "/Applications/MATLAB_R2023a.app/bin/maci64"
[ Info: Detected MATLAB executable at "/Applications/MATLAB_R2023a.app/bin/matlab"
ERROR: LoadError: could not load library "/Applications/MATLAB_R2023a.app/bin/maci64/libmx"
dlopen(/Applications/MATLAB_R2023a.app/bin/maci64/libmx.dylib, 0x0001): tried: '/Applications/MATLAB_R2023a.app/bin/maci64/libmx.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/MATLAB_R2023a.app/bin/maci64/libmx.dylib' (no such file), '/Applications/MATLAB_R2023a.app/bin/maci64/libmx.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:117
[2] dlopen (repeats 2 times)
@ ./libdl.jl:116 [inlined]
[3] dlpath(libname::String)
@ Base.Libc.Libdl ./libdl.jl:240
[4] top-level scope
@ ~/.julia/packages/MATLAB/SVjnA/deps/build.jl:79
[5] include(fname::String)
@ Base.MainInclude ./client.jl:476
[6] top-level scope
@ none:5
So I am amazed that it finds Matlab automatically (cool!) but maybe it does not like that 2023b is arm64
? Just for completeness, I am not in Rosetta2 mode so I am
julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.5.0)
CPU: 8 × Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
Threads: 1 on 4 virtual cores
Metadata
Metadata
Assignees
Labels
No labels