macOS
macOS has its roots in FreeBSD and with that in the "original" Unix distributed by Bell Labs in the 1960s. All macOS releases since Mac OS X Leopard (except OS X Lion) have been UNIX certified. With that, macOS gives an environment that offers everything needed for the assignments.
This setup guide is universal for both Apple Silicon (M1/M2/...) and Intel Macs. The steps that must be ignored on Intel Macs are marked with (Only on Apple Silicon).
Step 1: Install VS Code
Download Visual Studio Code (VS Code) for macOS and move the application to your "Applications" folder (depending on your browser you may need to unzip the downloaded archive first).
Now, to also enable the code
command for your terminal, follow these steps:
Open VS Code and press ⌘⇧P to open the Command Pallete.
In the prompt, enter "install code" and select the option named: "Shell Command: Install 'code' command in PATH".
Confirm the prompt that will pop up and enter your password to finish the installation.
Step 2: Install the Command Line Tools
Open a Terminal window and enter:
If the command line tools are not yet installed, a window should pop up with a prompt to do so. Follow all the steps of the installer, it may take a few minutes to download and install all the tools needed.
Step 3: Install Homebrew
Homebrew is a convininet package manager for macOS. We will use this program for the next step. Open a Terminal window and enter:
Enter your password and press the Enter key when prompted. The command takes around 2 minutes to run.
Step 4: Install CMake
Open a Terminal window and enter:
Step 5: Install Rosetta 2 (Only on Apple Silicon)
Open a Terminal window and enter:
When prompted, type 'A' and press enter to install.
Step 6: Install Docker (Only on Apple Silicon)
Navigate to the Docker Desktop page and download the version corresponding to your architecture. Double click on the donwloaded .dmg
file and drag-and-drop the application.
The framework provides a script that will run Docker for you, so you do not have to worry about understanding the internal procedures. Docker will be used to contain your executables to test for memory errors. Learn more in the address sanitization section.
Step 7: Set up SSH with GitHub
One of the easiest ways to access your GitHub account (and with that your private repository) is to set up a Secure Shell (SSH) key. Follow the GitHub SSH Setup Guide for this.
Last updated