Erigon Build
Developmenterigon-buildErigon Build is an Agent Skill for development published in the erigontech/erigon repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Build the Erigon binary using make. Use this when you need to compile erigon before running any erigon commands.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/erigontech/erigon/blob/HEAD/.claude/skills/erigon-build/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/erigon-build, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Build Erigon Binary
Build the Erigon binary by running make erigon from the repository root.
Build Command
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:
./build/bin/erigon --version