CMPUT 229 - Computer Organization and Architecture I
Setting up the RARS Simulator on a macOS machine
Check out this macOS Installation Instructions Video (YouTube) by Quinn Pham.
Method 1
This method requires that you have Homebrew installed in your system.
Homebrew can be installed from this page.
- Download the getRARS.sh script
- A package named wget is used within the getRARS.sh script. You
can install wget with the command:
brew install wget
(this may take some time)
- If you don't already have Java installed, you can install Java with brew too with the command:
brew install temurin
.
- Execute the script you downloaded with the command:
chmod +x getRARS.sh; ./getRARS.sh
(the script may require your
password)
- To execute the simulator, use the command:
rars
To uninstall and remove the RARS executable, use the command:
chmod +x $HOME/.229files/cleanup.sh; $HOME/.229files/cleanup.sh
Method 2
- To run the RARS simulator you must have Java (Java 1.8+) installed in your
system. Java can be downloaded from
this page.
- Download the
rars.jar
RARS simulator
- Download the rars executable script
- Make a hidden directory named .229files in your home directory to store
the rars.jar file with the command:
mkdir -p $HOME/.229files
- Move the rars.jar file to the .229files directory with the
command:
mv rars.jar $HOME/.229files/rars.jar
- Open the rars executable script in some text editor and edit the
RARSPath variable to the path on your computer where the rars.jar
file is located. The path should be:
$HOME/.229files/rars.jar
- Move this rars executable to /usr/local/bin directory, using the command:
sudo mv rars /usr/local/bin/rars
(you may need to enter your
password)
- Make the simulator executable using the command:
sudo chmod +x /usr/local/bin/rars
- To execute the simulator, use the command:
rars
To uninstall and remove the RARS executable download the
cleanup.sh script, and then use this command:
chmod +x cleanup.sh; ./cleanup.sh