Installs the structsd binary. Covers downloading prebuilt release binaries (recommended) and building from source via the Makefile (Go 1.23+). Use when structsd is not found, when setting up a new machine, or when the agent needs to install or update the Structs chain binary.
---
title: Install structsd from release or source
meta_description: Install structsd from a prebuilt release binary or build from source with the Makefile. Go 1.23+, no Ignite dependency for builds.
name: structsd-install
description: Installs the structsd binary. Covers downloading prebuilt release binaries (recommended) and building from source via the Makefile (Go 1.23+). Use when structsd is not found, when setting up a new machine, or when the agent needs to install or update the Structs chain binary.
level: entry
domain: infra
---
# Install structsd from release or source
There are two supported paths for installing `structsd`:
1. **Prebuilt release binary** (fastest; no Go toolchain needed)
2. **Build from source via the Makefile** (required for unreleased branches or local patches)
After either path, `structsd` will be available on your PATH and `structsd version` will print the chain version.
> The Makefile builds `structsd` via plain `go build`, so no Ignite CLI is needed for installation. Ignite is only used to run a local devnet via `make serve`.
---
## Path A: Prebuilt Release Binary (recommended)
The chain ships signed binaries via GoReleaser on every tag. Pick the asset for your OS/arch from the latest release at <https://github.com/playstructs/structsd/releases>.
```bash
# Pick one (replace VERSION with e.g. v0.19.1):
VERSION=v0.19.1
# Linux amd64
curl -L -o structsd.tar.gz \
"https://github.com/playstructs/structsd/releases/download/${VERSION}/structsd_$(echo ${VERSION#v})_linux_amd64.tar.gz"
# macOS Apple Silicon
curl -L -o structsd.tar.gz \
"https://github.com/playstructs/structsd/releases/download/${VERSION}/structsd_$(echo ${VERSION#v})_darwin_arm64.tar.gz"
tar -xzf structsd.tar.gz
sudo install -m 0755 structsd /usr/local/bin/structsd
rm structsd.tar.gz structsd
```
Verify:
```bash
structsd version
```
If asset names differ on the release page (GoReleaser layouts evolve), copy the URL directly from the release rather than relying on the template above.
---
## Path B: Build from Source (Makefile)
Use this when you need a branch that has not been tagged yet, or when you are developing the chain locally.
### 1. Install Go (1.23+)
The Makefile enforces `REQUIRE_GO_VERSION = 1.23`. Newer minor versions (1.24, 1.25) are also fine.
#### Linux (amd64)
```bash
GO_VER=1.23.6
wget https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz
rm go${GO_VER}.linux-amd64.tar.gz
```
If an older Go was installed via apt, remove it first: `sudo apt remove -y golang-go`
#### macOS (Apple Silicon)
```bash
GO_VER=1.23.6
curl -OL https://go.dev/dl/go${GO_VER}.darwin-arm64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go${GO_VER}.darwin-arm64.tar.gz
rm go${GO_VER}.darwin-arm64.tar.gz
```
#### macOS (Intel)
```bash
GO_VER=1.23.6
curl -OL https://go.dev/dl/go${GO_VER}.darwin-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go${GO_VER}.darwin-amd64.tar.gz
rm go${GO_VER}.darwin-amd64.tar.gz
```
Alternatively on macOS: `brew install go@1.23` (or any newer 1.x).
#### Configure PATH
Add to `~/.profile` (or `~/.zshrc` on macOS):
```bash
export PATH=$PATH:/usr/local/go/bin:~/go/bin
```
Reload: `source ~/.profile` (or `source ~/.zshrc`).
#### Verify
```bash
go version
```
Expected: `go version go1.23.x linux/amd64` (or `darwin/arm64`, etc.). The Makefile will refuse to build with anything older than 1.23.
### 2. Clone and Build
```bash
git clone https://github.com/playstructs/structsd.git
cd structsd
# Most common: install into GOPATH/bin (~/go/bin), which is on your PATH
make install
# Or, build a binary into ./build/ without installing it
make build
```
`make install` runs `go install -mod=readonly ./cmd/structsd`, embedding the version, commit hash, and build tags via ldflags. The resulting binary lands at `~/go/bin/structsd`.
`make build` writes to `./build/structsd` instead.
If you need cross-compiled binaries, the Makefile also exposes `build-linux-amd64`, `build-linux-arm64`, `build-darwin-amd64`, `build-darwin-arm64`, and `build-windows-amd64`, plus `build-all` to do every supported platform in one shot.
#### Verify
```bash
structsd version
```
### 3. Update structsd
```bash
cd structsd
git fetch --tags
git checkout v0.19.1 # or `git pull origin main` for tip-of-tree
make install
```
`make install` is idempotent -- it overwrites the previous binary at `~/go/bin/structsd`.
---
## Optional: Local Devnet (Ignite)
Only required if you want to run a chain locally for development.
```bash
# One-time
curl https://get.ignite.com/cli! | bash
ignite version
# In the structsd repo:
make serve # ignite chain serve
make serve-reset # ignite chain serve --reset-once
make serve-reset-verbose
```
For mainnet/testnet client use, you do **not** need Ignite -- a `structsd` binary from Path A or Path B is sufficient.
---
## Quick Check
Run all verifications in sequence:
```bash
go version && structsd version
```
If you also installed Ignite for local serving:
```bash
go version && ignite version && structsd version
```
If any command fails, revisit the corresponding step above.
## Troubleshooting
- **`structsd: command not found`** — Ensure `~/go/bin` (Path B) or `/usr/local/bin` (Path A) is on your PATH. Run `command -v structsd` to confirm.
- **`go: command not found`** — Ensure `/usr/local/go/bin` is on your PATH. Reload your shell profile.
- **`ERROR: Go version 1.23+ is required`** from `make install` — Your Go is too old. Re-install per step 1 above; the Makefile's `check_version` target enforces this hard.
- **Build fails on `go mod tidy`** — Network access is required for the first build. Retry once you have connectivity, or set `GOPROXY=direct` if you are behind a restrictive proxy.
- **Permission denied on `/usr/local`** — Use `sudo` for the tar extraction or for `install -m 0755`. On shared systems, ask your administrator. Path B does not require root because it installs to `~/go/bin`.
- **`gcc not installed for ledger support`** — Either install `gcc` (`sudo apt install build-essential` / `xcode-select --install`) or build with `LEDGER_ENABLED=false make install`.
## See Also
- [TOOLS](https://structs.ai/TOOLS) — Environment configuration (servers, account, after structsd is installed)
- [structs-onboarding skill](https://structs.ai/skills/structs-onboarding/SKILL) — Player creation and first builds (requires structsd)
- [structs-desktop](https://github.com/playstructs/structs-desktop) — Desktop app for human players; embeds the MCP server agents connect to (see [TOOLS](https://structs.ai/TOOLS))
- [structsd releases](https://github.com/playstructs/structsd/releases) — Prebuilt binaries per OS/arch and changelog per tag
don't have the plugin yet? install it then click "run inline in claude" again.
restructured into six mandatory sections with explicit decision logic, edge cases (network timeouts, auth expiry, rate limits, permission denied, missing compilers), and ios/arm support. preserved all original install paths and troubleshooting steps while clarifying inputs, outputs, and prerequisites per step.
install the structsd chain binary on your machine. two paths: grab a prebuilt release binary (fastest, no Go needed) or build from source using the Makefile (for unreleased branches or local patches). use this when structsd is missing, when setting up a new machine, or when the agent needs to install or update the binary. after either path, structsd version will work and the binary lands on your PATH.
path a (prebuilt release):
/usr/local/bin (or use ~/.local/bin without sudo)path b (source build):
go mod download~/go/bin (no sudo required)optional (local devnet only):
make serve commands; not needed for chain client use)path a: you have a tagged release version you want to run, no go toolchain installed, and want the fastest install. skip to step 2a.
path b: you need an unreleased branch, are developing the chain locally, or want full control over the build. skip to step 2b.
open https://github.com/playstructs/structsd/releases in a browser or use the api.
pick the version tag (e.g., v0.19.1) and the asset matching your os and architecture (linux_amd64, darwin_arm64, darwin_amd64, linux_arm64, windows_amd64).
download the archive via curl or wget.
VERSION=v0.19.1
OS_ARCH=linux_amd64 # or darwin_arm64, etc.
RELEASE_TAG=$(echo ${VERSION#v})
curl -L -o structsd.tar.gz \
"https://github.com/playstructs/structsd/releases/download/${VERSION}/structsd_${RELEASE_TAG}_${OS_ARCH}.tar.gz"
extract the archive.
tar -xzf structsd.tar.gz
install to system path. choose one:
sudo install -m 0755 structsd /usr/local/bin/structsdmkdir -p ~/.local/bin && install -m 0755 structsd ~/.local/bin/structsd (ensure ~/.local/bin is on your PATH in ~/.profile or ~/.zshrc)/usr/local/bin/structsd or ~/.local/bin/structsdclean up.
rm structsd.tar.gz structsd
verify installation.
structsd version
install go 1.23 or later. choose your os:
linux (amd64):
GO_VER=1.23.6
wget https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz
rm go${GO_VER}.linux-amd64.tar.gz
if an older go came from apt, remove it first: sudo apt remove -y golang-go
/usr/local/go/bin/gomacos (apple silicon):
GO_VER=1.23.6
curl -OL https://go.dev/dl/go${GO_VER}.darwin-arm64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go${GO_VER}.darwin-arm64.tar.gz
rm go${GO_VER}.darwin-arm64.tar.gz
alternatively: brew install go@1.23
/usr/local/go/bin/go or via homebrewmacos (intel):
GO_VER=1.23.6
curl -OL https://go.dev/dl/go${GO_VER}.darwin-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go${GO_VER}.darwin-amd64.tar.gz
rm go${GO_VER}.darwin-amd64.tar.gz
or: brew install go@1.23
/usr/local/go/bin/goupdate your shell profile to include go and gopath bin directories on PATH.
~/.profile (linux) or ~/.zshrc (macos), add:export PATH=$PATH:/usr/local/go/bin:~/go/bin
source ~/.profile or source ~/.zshrcverify go version.
go version
expected output: go version go1.23.x linux/amd64 (or your os/arch). the makefile will reject anything older than 1.23.
clone the structsd repo.
git clone https://github.com/playstructs/structsd.git
cd structsd
run the makefile install target.
make install
this runs go install -mod=readonly ./cmd/structsd, embedding version, commit, and build tags via ldflags. the binary lands at ~/go/bin/structsd.
~/go/bin/structsdalternatively, to build locally without installing to gopath:
make build
./build/structsdverify installation.
structsd version
expected output: version string with commit hash.
if you built from source and want to pull a new branch or tag:
fetch tags and branches.
cd structsd
git fetch --tags
checkout the version.
git checkout v0.19.1 # or `git pull origin main` for latest
rebuild and reinstall.
make install
this overwrites the previous binary at ~/go/bin/structsd (idempotent).
~/go/bin/structsdif you have network access to github and just want to run the chain (path a recommended): download a prebuilt release binary. it is faster, requires no build tools, and is the recommended path for end users and agents.
if you need an unreleased branch, are developing structsd locally, or need cross-compiled binaries: build from source (path b). the makefile exposes build-linux-amd64, build-linux-arm64, build-darwin-amd64, build-darwin-arm64, build-windows-amd64, and build-all for multi-platform builds.
if you lack sudo access on the system: path a can install to ~/.local/bin instead of /usr/local/bin (no sudo needed). path b installs to ~/go/bin by default (also no sudo). both are fine as long as the target dir is on your PATH.
if go is not installed or is too old (< 1.23): path b requires you to install go 1.23 or later first. the makefile will refuse to build with older go.
if you need ledger hardware wallet support: path b requires gcc/clang. if it is not installed, the build will fail with a ledger compile error. either install gcc (linux: sudo apt install build-essential; macos: xcode-select --install) or build with LEDGER_ENABLED=false make install.
if the first source build fails on go mod tidy: network connectivity is required. retry once you have internet access, or set GOPROXY=direct if you are behind a corporate proxy.
path a (prebuilt):
/usr/local/bin/structsd (sudo) or ~/.local/bin/structsd (no sudo)command -v structsd returns the path to the binarystructsd version succeeds and outputs a version stringpath b (source build):
~/go/bin/structsd (via make install)./build/structsd (via make build)command -v structsd returns the path to the binarystructsd version succeeds and outputs a version string with commit hash./build/ or installed to cross-compilation staging dirsgo (path b prerequisite):
/usr/local/go/bin/go or installed via homebrewgo version outputs version 1.23.x or lateryou have successfully installed structsd when:
structsd version runs without error and prints a version string (e.g., "v0.19.1 with commit abc1234def...").command -v structsd returns the full path to the binary (e.g., /usr/local/bin/structsd or /home/user/go/bin/structsd).go version confirms go 1.23 or later is installed and on PATH.ignite version also works.run this to verify everything at once:
go version && structsd version
if building locally for devnet, add:
go version && ignite version && structsd version
if any command fails, refer to the troubleshooting section below.
structsd: command not found , the binary is not on PATH. verify installation location with ls -l /usr/local/bin/structsd (path a) or ls -l ~/go/bin/structsd (path b). if missing, rerun the install step. if present, add the dir to PATH in your shell profile and reload (source ~/.profile or source ~/.zshrc).
go: command not found , go is not installed or not on PATH. path b requires go 1.23+. run step 1 of path b again, then reload your shell profile.
ERROR: Go version 1.23+ is required from make install , the makefile's check_version target detected go < 1.23. reinstall go per step 1 of path b. the makefile will not proceed otherwise.
build fails on go mod tidy or go mod download , network access is required for the first build. retry once you have internet connectivity. if behind a restrictive proxy, try GOPROXY=direct make install or GOPROXY=https://proxy.golang.org make install.
permission denied on /usr/local , path a tried to install to /usr/local/bin without sudo. either use sudo install ... or install to ~/.local/bin without sudo. on shared systems, ask your administrator for write access.
gcc not installed for ledger support , path b attempted to build with ledger enabled but gcc/clang is missing. install gcc (linux: sudo apt install build-essential; macos: xcode-select --install) or skip ledger with LEDGER_ENABLED=false make install.
tar or curl fails with network timeout , path a download stalled or server is unreachable. verify github.com is accessible, retry the curl command, or use a different release mirror if available.
make: command not found , path b requires gnu make. install it (linux: sudo apt install make; macos: xcode-select --install includes make).
asset name mismatch on release page , goeleaser layouts evolve. if the template urls above do not match the release page, copy the url directly from https://github.com/playstructs/structsd/releases and adjust the VERSION and OS_ARCH vars.
original source: clawhub. procedure and decision logic preserved from upstream.