Prerequisites
Nash is written in Rust and requires the Rust toolchain to build from source.Install Rust
If you don’t have Rust installed, install it using rustup:Verify Rust Installation
Check that you have Rust 1.75 or later:Nash requires Rust 1.75+ due to modern language features and dependencies.
Build Nash from Source
Nash is currently distributed as source code. Follow these steps to build it:Build the release binary
The
--release flag is important for performance. Debug builds are significantly slower.Verify Installation
Test that Nash is working correctly:Check version
Run interactive REPL
Start Nash in interactive mode:Test basic commands
Try some commands in the REPL:Ctrl-D or by typing exit.
Dependencies
Nash has minimal runtime dependencies. All dependencies are automatically handled by Cargo during build:| Dependency | Version | Purpose |
|---|---|---|
| rustyline | 14.0 | REPL and readline functionality |
| clap | 4.0 | CLI argument parsing |
| anyhow | 1.0 | Error handling |
| thiserror | 1.0 | Error type derivation |
| indexmap | 2.0 | Ordered environment variables |
No system dependencies are required at runtime. Nash is a fully self-contained binary.
Build Profile
The release build uses these optimizations (fromCargo.toml):
Troubleshooting
Build fails with “cannot find crate”
Ensure you have a stable internet connection. Cargo needs to download dependencies:“error: linker cc not found”
You need a C compiler for linking. Install build tools:
Binary is too large
You can strip debug symbols to reduce size:Permission denied when installing
Ifsudo cp to /usr/local/bin/ fails, use the user bin directory instead:
~/.bashrc, ~/.zshrc, etc.):
Uninstalling
To remove Nash:Next Steps
Now that Nash is installed, continue to the quickstart guide to learn how to use it:Quickstart Tutorial
Get started with hands-on examples and learn Nash basics
