Giter Site home page Giter Site logo

Comments (11)

rened avatar rened commented on August 20, 2024

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.

rened avatar rened commented on August 20, 2024

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.

musm avatar musm commented on August 20, 2024

Is this still an issue?

from matlab.jl.

musm avatar musm commented on August 20, 2024

can someone close this, thanks

from matlab.jl.

musm avatar musm commented on August 20, 2024

bump

from matlab.jl.

musm avatar musm commented on August 20, 2024

let's close this, if there are further issues please reopen with more detail

from matlab.jl.

musm avatar musm commented on August 20, 2024

bump for the close

from matlab.jl.

musm avatar musm commented on August 20, 2024

bump for the close

from matlab.jl.

musm avatar musm commented on August 20, 2024

bump for the close

from matlab.jl.

musm avatar musm commented on August 20, 2024

close?

from matlab.jl.

musm avatar musm commented on August 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.