Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Command Line Set-Up Instructions 

...

Mac, using the bash shell

On Mac, you will need to open a Terminal window and edit your .bash_profile file.

  • Launch a Terminal window. You can find the Terminal under Applications → Utilities.
  • Type nano .bash_profile in the command prompt. This will launch a text editor where you can edit the file.
  • Add OpenSim's bin folder to your PATH environment variable. Most users can use a command like the following: 

...

export PATH="/Applications/OpenSim 4.1/bin:$PATH"

  • Save the file using ctrl+o, then close nano using ctrl+x. 
  • Close and relaunch your Terminal window.

For convenience you can should add a shortcut to opensim-cmd and/or to opensense. :

  • Launch a terminal window and type "cd /usr/local/bin/".
  • Then type:

...

Note that the backslash before the 4.1 allows the terminal shell to correctly interpret the space in the name of the "OpenSim 4.1" folder.Alternatively you can run the bash script included with 4.1 distribution on Mac OS located at <OpenSim Installation Folder>/bin/opensim-install-command-line.sh to execute the above two lines.

From then on, you can refer to opensense and opensim-cmd from anywhere on your Mac.

...