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:
...
Code Block |
---|
sudo ln -s /Applications/OpenSim\ 4.1/bin/opensense opensenseopensim-cmd opensim-cmd sudo ln -s /Applications/OpenSim\ 4.1/bin/opensense opensense |
...