Skip to content

Instantly share code, notes, and snippets.

@leo-pfeiffer
Last active May 2, 2025 21:16
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!

@danilaomelchenko
Copy link

Thanks a lot!

@snehaxsrinivasa
Copy link

Thank you It was helpful.

@zyucccc
Copy link

zyucccc commented Feb 29, 2024

Thanks a lot!

@AndreiGhita2002
Copy link

ISpin crashes instantly for me. Apparently there is something wrong with the TCL implementation for mac.

@thiagovf
Copy link

thiagovf commented May 2, 2025

Mine broke here too. To fix it, I had to do this:

Running ispin.tcl on macOS (Apple Silicon)

To run the ispin.tcl GUI for SPIN on macOS with Apple Silicon:

1. Install Tcl/Tk 8.x using Homebrew

brew install tcl-tk@8

2. Run ispin.tcl using the compatible wish binary

/opt/homebrew/opt/tcl-tk@8/bin/wish8.6 /path/to/ispin.tcl

Replace /path/to/ispin.tcl with the full path to your script.

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