Skip to content

Instantly share code, notes, and snippets.

@leo-pfeiffer
Last active June 20, 2024 06:50
Show Gist options
  • Save leo-pfeiffer/92a095fa92d247fb9a788fbe9c84b2a6 to your computer and use it in GitHub Desktop.
Save leo-pfeiffer/92a095fa92d247fb9a788fbe9c84b2a6 to your computer and use it in GitHub Desktop.
Install Spin and iSpin on Mac
#!/bin/bash
# Install Spin and iSpin on MacOS
# adapted from https://philenius.github.io/software%20quality/2020/04/09/installing-spin-on-ubuntu-19.html
# (requires developer tools to be installed; to install them, run `xcode-select --install`)
# Install in a new directory
INSTALL_DIR=Spin
mkdir $INSTALL_DIR
cd $INSTALL_DIR
curl -OL https://github.com/nimble-code/Spin/archive/version-6.5.2.tar.gz
tar xfz version-6.5.2.tar.gz
cd Spin-version-*/Src
make
sudo cp spin /usr/local/bin/
# Example: Check if Spin was installed
# spin -V
# Example: Running Spin
# spin $INSTALL_DIR/Spin-version-*/Examples/hello.pml
# Example: Running iSpin
# cd $INSTALL_DIR/Spin-version-*/optional_gui/
# ./ispin.tcl
@durchhaltenbitte
Copy link

This has helped me, thanks!

@Omelman
Copy link

Omelman commented Dec 4, 2022

Thanks a lot!

@snehaxsrinivasa
Copy link

Thank you It was helpful.

@zyucccc
Copy link

zyucccc commented Feb 29, 2024

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment