Author Topic: Notes for Mac users (including Catalina / Big Sur security settings)  (Read 172 times)

Paula

  • Administrator
  • Hero Member
  • *****
  • Posts: 439
    • View Profile
    • My GPS Division profile
On macOS Catalina and Big Sur, the first time you try to run alphaMELTS for MATLAB/Python it may fail due to new security settings. If you see the option like "Move to Trash" and "Cancel" then click Cancel. Go to System Preferences -> Security & Privacy->General tab and select "Allow anyway", and then try again. The second time you will be asked whether to Open or Move to Trash, so pick Open.

On Mac, if you have Xcode installed, and it is up to date, this will work for alphaMELTS for MATLAB. If you do not have Xcode you do not need to install it, and you probably don't want to as it is huge(~10 GB)! Instead install just the Command Line Tools, which are < 1 GB; you will get some warnings when you run alphaMELTS for MATLAB, but they are harmless and can be suppressed.
  • If you install Homebrew then the Command Line Tools will be installed automatically
  • Otherwise see: http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
  • Copy and paste the following to Terminal to tell MATLAB that you agree to the Xcode license:
    Quote
    /usr/libexec/PlistBuddy -c 'Add :IDEXcodeVersionForAgreedToGMLicense string 10.0' ~/Library/Preferences/com.apple.dt.Xcode.plist
  • Finally when you open MATLAB type "mex -setup C" at the MATLAB command line (only needed once).