Comments (11)
I found the following workaround, which seems to work for both 2011a and 2012a. As setting LD_LIBRARY_PATH
has no effect and setting DYLD_LIBRARY_PATH
crashes Julia I resorted to linking to the offending libraries, placing the links in the directory from where I start Julia:
libtbb.dylib -> /Applications/MATLAB_R2011a.app/bin/maci64/libtbb.dylib
libtbbmalloc.dylib -> /Applications/MATLAB_R2011a.app/bin/maci64/libtbbmalloc.dylib
The cause of the whole issue seems to be related to the fact that cd /Applications/MATLAB_R2011a.app/bin/maci64/; otool -L libut.dylib
shows neither absolute paths nor relative references for libtbb*.dylib
:
rene:maci64 $ otool -L libut.dylib
libut.dylib:
@loader_path/libut.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libmwi18n.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libmwfl.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libboost_date_time.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libboost_system.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libboost_thread.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
@loader_path/libicudata.dylib.42 (compatibility version 42.0.0, current version 42.1.0)
@loader_path/libicuuc.dylib.42 (compatibility version 42.0.0, current version 42.1.0)
@loader_path/libicui18n.dylib.42 (compatibility version 42.0.0, current version 42.1.0)
@loader_path/libicuio.dylib.42 (compatibility version 42.0.0, current version 42.1.0)
libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
libtbbmalloc.dylib (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 438.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)
Interestingly, starting julia from within /Applications/MATLAB_R2011a.app/bin/maci64
yields:
rene:maci64 $ julia -e "using MATLAB"
ERROR: syntax: invalid character ""
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in reload_path at loading.jl:140
in _require at loading.jl:58
in require at loading.jl:43
in process_options at client.jl:242
in _start at client.jl:389
while loading /Applications/MATLAB_R2011a.app/bin/maci64/MATLAB, in expression starting on line 1
from matlab.jl.
just to explore all possibilities which would be cleaner than the workaround above, setting the load path internal to julia (as detailed here: JuliaLang/julia#3364) does not work either:
julia> push!(Sys.DL_LOAD_PATH, "/Applications/MATLAB_R2011a.app/bin/maci64")
3-element Array{Union(ASCIIString,UTF8String),1}:
"@executable_path/../lib/julia"
"@executable_path/../lib"
"/Applications/MATLAB_R2011a.app/bin/maci64"
julia> using MATLAB
ERROR: could not load module /Applications/MATLAB_R2011a.app/bin/maci64/libmx: dlopen(/Applications/MATLAB_R2011a.app/bin/maci64/libmx.dylib, 9): Library not loaded: libtbb.dylib
Referenced from: /Applications/MATLAB_R2011a.app/bin/maci64/libut.dylib
Reason: image not found
in dlopen at c.jl:27
in load_libmx at /Users/rene/.julia/MATLAB/src/mxbase.jl:77
from matlab.jl.
Is this still an issue?
from matlab.jl.
can someone close this, thanks
from matlab.jl.
bump
from matlab.jl.
let's close this, if there are further issues please reopen with more detail
from matlab.jl.
bump for the close
from matlab.jl.
bump for the close
from matlab.jl.
bump for the close
from matlab.jl.
close?
from matlab.jl.
@rened I am closing this issue, since there hasn't been any action. If this is still a problem please open another issue.
from matlab.jl.
Related Issues (20)
- Custom REPL HOT 5
- Continous integration HOT 15
- Tuples converted to MATLAB structs
- Sparse complex matrices convert to sparse real matrices
- Automatic COM server registration on Windows HOT 11
- TagBot trigger issue HOT 5
- mxarray on partially initialized structs
- UndefRefError on windows HOT 3
- Error precompiling MATLAB.jl HOT 7
- using custom matlab function HOT 1
- How to suppress the warning messages at the beginning of the MATLAB.jl processing? HOT 5
- libmx error when building HOT 7
- UndefRefError in MAC OS Apple Silicon HOT 3
- Variable interpolation from Julia to Matlab: Treat adjoint vectors as row vectors
- Mac M1: MATLAB.MEngineError("invalid engine session...
- how to use mat by MATLAB.jl ?
- segfault with Matlab 2022a on Windows HOT 6
- MATLAB code does not run / fails silently HOT 5
- Restart Matlab Session after fatal error exit
- Fail to build the MATLAB due to the load error of libmx HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matlab.jl.