Page 1 of 1

Installing MOCO to Use Matlab on a Mac

Posted: Mon Mar 02, 2020 11:57 am
by scadi271429
I am working on a MacBookPro with a 6-Core Intel Core i7 2.6 GHz processor; with 16 GB of meme more and running macOS Catalina Version 10.15.3

I have downloaded the OpenSim Moco distribution for Mac (opensim-moco-0.3.0-mac.zip) from MOCO website

I unzipped the distribution and stored it in a local directory. I followed the instructions for "using MOCO in MATLAB" found on your website. I loaded and ran configureMoco.m

Mac OS objected to launching the files with a .dylib extension. I followed the instructions on the apple website and opened them in terminal. That action override the Catalina virus protection. But I do not want to continually do this.

Is there a way to identify you as a trusted developer or faster way to do this?

thank you

Re: Installing MOCO to Use Matlab on a Mac

Posted: Mon Mar 02, 2020 12:13 pm
by chrisdembia
We are aware of the macOS error when trying to run Moco, and we have attempted to address this issue. Implementing the solution will take some time, unfortunately. We will provide updates on this issue here: https://github.com/opensim-org/opensim-moco/issues/495

There is a way to run Moco without disabling Catalina virus protection. When you download Moco for macOS, we give you such instructions. For macOS 10.15 Catalina, you must run the following command in the Terminal:

Code: Select all

xattr -r -d com.apple.quarantine <opensim-moco-install-dir>
Have you been able to run Moco?

Re: Installing MOCO to Use Matlab on a Mac

Posted: Mon Mar 02, 2020 12:58 pm
by scadi271429
Hi

Thank you for getting back with me.

No I haven't been able to run Moco yet.

I tried your advice on the 'xattr -r -d com.apple.quarantine <opensim-moco-install-dir>'. I opened up a terminal window and
1) copied and pasted 'xattr -r -d com.apple.quarantine <opensim-moco-install-dir> ' at the prompt.
2) moved to the opensim-coco-install-dir directory and pasted 'xattr -r -d com.apple.quarantine <opensim-moco-install-dir> ' at the prompt

In both cases, the response was "zsh: parse error near \n'.

Any ideas what I am doing wrong? Thank you again for your help.

Re: Installing MOCO to Use Matlab on a Mac

Posted: Mon Mar 02, 2020 2:43 pm
by chrisdembia
Replace <opensim-moco-install-dir> with the actual path to Moco. If your working directory is the Moco install directory, then run:

Code: Select all

xattr -r -d com.apple.quarantine .
(the period means the current working directory).

Re: Installing MOCO to Use Matlab on a Mac

Posted: Tue Mar 03, 2020 8:52 am
by scadi271429
Good Morning

OMG - it worked.

I obviously do not understand the command line sufficiently. With your last guidance, I was able to get the thing to work.

Thank you very much

Happy Tuesday