Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change shell script extension from sf to sh

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 add a shortcut to opensim-cmd and/or to opensense. should add a shortcut to opensim-cmd and/or to opensense. You can do this by running the script provided:

  • Launch a terminal window and navigate to the "bin" folder that is contained in the folder where you installed OpenSim. For example, if you installed OpenSim in "Applications/OpenSim 4.1" you would type:
Code Block
cd /Applications/OpenSim\ 4.1/bin
  • Then, run the included set-up script by typing the following. You may be prompted to enter your password:
Code Block
./opensim-install-command-line.sh

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

To test if the OpenSim command line tools are now on your path, type in "opensim-cmd" at the command prompt from any directory. A set of instructions for using opensim-cmd should be printed to the Terminal window. You can test the opensense command line tools similarly.


Alternately, you can do the set-up manually by following the steps below:

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

...