Complete guide to get Trinity running on macOS.
- macOS 12.0+ (Monterey or later)
- Xcode Command Line Tools
xcode-select --install
- Homebrew — for package management
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install via Homebrew
brew tap gHashTag/trinity
brew install trinity
# Verify installation
tri --version# Clone repository
git clone https://github.com/gHashTag/trinity.git
cd trinity
# Install Zig 0.15.x
brew install zig
# Build TRI CLI
zig build tri
# Run (optional: add to PATH)
./zig-out/bin/tri --versionnpm install -g @playra/tri
tri --version# Show sacred constants
tri constants
# Interactive REPL
tri
# Run tests
zig build test- QMTech XC7A100T FPGA board
- FTDI JTAG cable
# Install openFPGALoader
brew install openfpgaloader
# Install fxload (for JTAG cable)
brew install fxload# CRITICAL: Switch JTAG cable to JTAG mode first
fxload -t fx2 -I ./fpga/openxc7-synth/xc7a-xc7s-ftdi.hex -d 0x0013
# Now flash
tri fpga flash# Add Zig to PATH (add to ~/.zshrc or ~/.bash_profile)
export PATH="/opt/homebrew/bin:$PATH"
# Or use full path
/opt/homebrew/bin/zig build tri# Make executable
chmod +x ./zig-out/bin/tri
# Or install globally
zig build tri
sudo cp ./zig-out/bin/tri /usr/local/bin/sudo xcodebuild -license accept- Install Zig extension
- Install CodeLLDB for debugging
- Configure settings:
{
"zig.zigPath": "/opt/homebrew/bin/zig",
"zig.formattingProvider": "zls"
}- Install Zig plugin
- Configure Zig SDK
- Set up build configuration
- Read README.md for all commands
- Check CONTRIBUTING.md for development
- See docs/troubleshooting.md for issues
Last updated: 2026-03-24