Environment Setup
Complete guide for setting up your NCN Network development environment.
Prerequisites
Required Software
Software
Version
Purpose
Rust
1.70+
Core services
Python
3.8+
Model execution
Git
2.0+
Version control
protoc
3.0+
Protocol buffers
Optional Software
Software
Version
Purpose
Docker
20.10+
Containerized deployment
Foundry
Latest
Smart contract development
Node.js
18+
Client SDK development
Install Rust
Linux/macOS
Windows
Download and run rustup-init.exe.
Additional Components
Install Python
Linux (Ubuntu/Debian)
macOS
Python Dependencies
Install Protocol Buffers
Linux (Ubuntu/Debian)
macOS
Verify Installation
Install System Dependencies
Linux (Ubuntu/Debian)
macOS
Clone the Repository
Build the Project
Expected Output
Verify Installation
Run Tests
Check Linting
Optional: Docker Setup
Install Docker
Build Docker Images
Optional: Foundry Setup
For smart contract development:
IDE Setup
VS Code
Recommended extensions:
JetBrains (IntelliJ/CLion)
Install Rust plugin
Install Python plugin
Configure Cargo toolchain
Environment Variables
Create a .env file or export variables:
Troubleshooting
"linker not found"
"protoc not found"
"OpenSSL not found"
"Python not found" during build
Next Steps
Building - Detailed build instructions
Running Locally - Start local development
Testing - Run the test suite
Last updated
