# Erigon Build

> Build the Erigon binary using make. Use this when you need to compile erigon before running any erigon commands.

- Skill: `erigontech/erigon-build` (Agent Skill)
- Install (CLI): `npx skillmds@latest add erigontech/erigon-build`
- Raw SKILL.md: https://api.skillmd.com/api/skills/erigontech/erigon-build/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: erigontech (https://skillmd.com/u/erigontech)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/erigontech/erigon-build

---


# Build Erigon Binary

Build the Erigon binary by running `make erigon` from the repository root.

## Build Command

```bash
make erigon
```

This compiles the Erigon binary and places it at `./build/bin/erigon`.

## What the Build Does

- Compiles the main Erigon executable
- Sets version information from git (commit, branch, tag)
- Applies appropriate CGO flags for the platform
- Outputs binary to `build/bin/erigon`

## Prerequisites

- Go (version specified in go.mod)
- C compiler (gcc or clang)
- Make

## After Building

The binary will be available at:
```
./build/bin/erigon
```

You can verify the build by running:
```bash
./build/bin/erigon --version
```

