doc command not working

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Giorgio Davico
Posts: 9
Joined: Mon Nov 23, 2015 8:53 pm

doc command not working

Post by Giorgio Davico » Thu May 13, 2021 4:56 am

Dear all,

while trying to use the dos command to run the AnalyzeTool from the terminal (to batch process StaticOptimization and JointReaction analyses using the OpenSim API in MATLAB), some students of mine who work on MacOS were shown the following message and could not successfully run the simulations:

Code: Select all

-bash: opensim-cmd: commandnot found
I pointed them to this document (https://simtk-confluence.stanford.edu/d ... +Utilities) to make sure everything was correctly installed, but the problem was not solved.

If anyone has ever encountered this same problem, could you please let me know how to solve it?
I don't have a Mac myself, so I can't test it on my own.

Cheers,
Giorgio

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: doc command not working

Post by Ayman Habib » Thu May 13, 2021 8:13 am

Hello Giorgio,

Can you please clarify what is the current behavior? For example,
- Was the application installed for admin/all-users or just one user?
- Were users able to locate the bin folder as explained in the doc?
- Are the shell scripts found as explained in the doc? Were the soft-links created successfully?
- Finally if this is specific to some students as it may be machine specific or OS version specific.

Appreciate if you can provide more details so we can help your students,

Best regards,
-Ayman

User avatar
Giorgio Davico
Posts: 9
Joined: Mon Nov 23, 2015 8:53 pm

Re: doc command not working

Post by Giorgio Davico » Mon May 17, 2021 6:33 am

Thanks Ayman for the prompt reply.

I have gathered some more information from my students, which you can find below and attached:
  • macOS: BigSur v11.3 (student #1), v11.3.1 (student #2), v11.2.3 (student #3)
  • opensim-cmd installation: succesfull in one case (see picture 1_successful_install), unsuccessful for the others (see picture 2_successful_install)
  • MATLAB error when dos is called:
    zsh:1: command not found: opensim-cmd
    (same when she tried replacing zsh with bash)
To answer your questions:
  • OpenSim was installed for all users
  • Yes, all students were able to locate the bin folder
  • Yes, they did find the shell scripts and it seems the soft link was indeed created succesfully (not in one case)
  • This problem was specific to the few students who work with macOS (BigSur)
I hope this clarifies the problem.

Best,
Giorgio
Attachments
macOS.png
macOS.png (60.17 KiB) Viewed 202 times
2_unsuccesful_install.png
First attempt (2nd student), unsuccessful.
2_unsuccesful_install.png (63.51 KiB) Viewed 202 times
2_successful_install.png
Second attempt (2nd student) using a different commant in terminal to install opensim-cmd. This was successful, but still did not result in the dos command working in MATLAB.
2_successful_install.png (188 KiB) Viewed 202 times
1_successful_install.png
First attempt (1st student), successfull. Nonetheless, the problem in MATLAB was not resolved.
1_successful_install.png (161.43 KiB) Viewed 202 times

POST REPLY