This guide shows how to set up aic on a local development machine.
Install these tools first:
- Rust (stable toolchain)
clangavailable inPATHmakepython3
Quick checks:
rustc --version
cargo --version
clang --version
make --version
python3 --versionFrom the repository root:
cargo build --releaseThis produces the binary at:
target/release/aic
Choose one of these options.
cargo install --path . --forceexport PATH="$(pwd)/target/release:$PATH"If you use zsh, add the same export PATH=... line to ~/.zshrc and reload your shell.
Run setup once after installing the CLI:
aic setupDefault global std install path:
~/.aic/toolchains/<aic-version>/std
Optional overrides:
AIC_HOME: changes base directory (<AIC_HOME>/toolchains/<aic-version>/std)AIC_STD_ROOT: sets an explicit std directoryaic setup --std-root /absolute/path/to/std
aic --version
aic setup --std-root "$(mktemp -d)/std"The setup command should print:
installed AICore standard library at <path>
aic init hello_aic
cd hello_aic
aic check src/main.aic
aic run src/main.aicaic init does not copy std/ into the project. std imports resolve from the global toolchain install.
- Re-open the terminal after install.
- Confirm
cargo binis inPATH(typically~/.cargo/bin). - Or add
target/releasetoPATHif using the local binary directly.
Set one of these and retry:
export AIC_HOME="$HOME/.aic"
# or
export AIC_STD_ROOT="$HOME/.aic/toolchains/manual/std"- Run
aic setupagain. - Confirm the std root contains files like
io.aic. - If needed, pin explicit location with
AIC_STD_ROOT.