Alire is the package manager for the Ada programming language.
Alire is to Ada like what pip is to Python.
Alire is crucial to building and compiling this project.
- Navigate to https://github.com/alire-project/alire/releases/latest
- Download the file named alr-[latest_version]-bin-x86_64-macos.zip, where [latest_version] will be the most current version number.
- Unzip the downloaded file.
- Rename the unzipped folder to just
alire
.
- Open the terminal and run:
echo "$HOME/Downloads/alire/bin" | sudo tee /etc/paths.d/alr_config > /dev/null
- Change the permission of the created file with the following command:
sudo chmod 644 /etc/paths.d/alr_config
- Update the machine's PATH:
/usr/libexec/path_helper -s
- Check if alr is recognized: Run the command below. It should return a valid path. If not, restart the installation.
which alr
- Create a folder on your local machine.
- Navigate to this location in the terminal using the
cd
command:
cd [your-path-to-created-folder]
- Execute the following command in the terminal:
git clone https://github.com/GNAT-Academic-Program/lab_rsa
- Navigate to https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal
- Unzip the downloaded file.
- Open the unzipped file.
NOTE: Brew for MacOS may be helpful for this installation. The instructions to install Brew can be found at: https://formulae.brew.sh/cask/visual-studio-code
- Click on the extension button in Visual Studio Code that looks like the following:
- Search for "Ada & SPARK"
- Once you find the correct version (as seen below), click "Install".
- On the home page, click 'Open Folder'. Alternatively, you can find the option to 'Open Folder' through: File -> Open folder
- Navigate to the Gihub repository that you cloned in the previous steps. Select Open.