Installing MOCO to Use Matlab on a Mac

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Installing MOCO to Use Matlab on a Mac

Post by Ruth Ann Miller » Mon Mar 02, 2020 11:57 am

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

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Installing MOCO to Use Matlab on a Mac

Post by Christopher Dembia » Mon Mar 02, 2020 12:13 pm

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?

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: Installing MOCO to Use Matlab on a Mac

Post by Ruth Ann Miller » Mon Mar 02, 2020 12:58 pm

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.

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Installing MOCO to Use Matlab on a Mac

Post by Christopher Dembia » Mon Mar 02, 2020 2:43 pm

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

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: Installing MOCO to Use Matlab on a Mac

Post by Ruth Ann Miller » Tue Mar 03, 2020 8:52 am

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

POST REPLY