DYLD_LIBRARY_PATH
34 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am totally a beginner in programming and Matlab.
I have a big trouble to open a FMU file on Matlab Simulink, sicne the "DYLD_LIBRARY_PATH" is missing on my macOS.
I want to work by adding variable "DYLD_LIBRARY_PATH", I do not know how to launch MATLAB by command line in the terminal added variable "DYLD_LIBRARY_PATH".
--------------------------------------------------------------------------------------------
I also found this on Mathwork, but I have no idea hot to implement it:
Use the Exported Tool-Coupling FMU
The exported FMU requires a local installation of Simulink to run. The MATLAB version used for cosimulation must be the same as the MATLAB version where the FMU is exported. On Windows®, the application that runs the FMU can check out the required licenses automatically. For other operating systems, apply these settings:
- On Mac OS:setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<InstallationFolder>/bin/maci64:<InstallationFolder>/extern/bin/maci64 (csh/tcsh)
- export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:<InstallationFolder>/bin/maci64:<InstallationFolder>/extern/bin/maci64 (bash)
--------------------------------------------------------------------------------------------
Could anyone please tell me how I can add it to my macOS via terminal or better said how to launch MATLAB with added variable "DYLD_LIBRARY_PATH, step by step?
Thanks!
1 Kommentar
Walter Roberson
am 31 Mai 2023
Unfortunately, as of El Capitan, under some conditions DYLD_LIBRARY_PATH is ignored for security reasons.
The official documentation since then has implied that the security reasons should not apply to MATLAB or Simulink, but in practice many people have found that this security "feature" does apply to MATLAB and Simulink (at least when installed in the default locations under /Applications ) .
When this problem is occuring, the work-arounds are not straight-forward... not unless you are willing to disable System Integrity Protection.
Antworten (1)
Varun
am 27 Dez. 2023
Hi Saba,
Looks like you want to know step by step how to launch the MATLAB after setting up "DYLD_LIBRARY_PATH" environment variable.
Please follow below steps:
1) Open the Bash Terminal application on your macOS. To open it, open the Launchpad app. Type in "terminal" and click "Terminal".
Alternatively, you can find it in the Applications > Utilities folder.
2) Know the folder where the MATLAB is installed. Usually, the MATLAB is in the Applications folder, you might use:
/Applications/MATLAB_R20XXx.app/bin
3) Use the "export" command to set the "DYLD_LIBRARY_PATH" variable as shown below:
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/Applications/MATLAB_R20XXx.app/bin/maci64:/Applications/MATLAB_R20XXx.app/extern/bin/maci64
Make sure to replace "R20XXx" with your MATLAB version.
4) Launch the MATLAB from same terminal:
/Applications/MATLAB_R20XXx.app/bin/matlab
These steps should help you launch the MATLAB with DYLD_LIBRARY_PATH env. variable being set on macOS.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!