Files
cpa-plugin/scripts/check-env.sh
T

17 lines
490 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euo pipefail
command -v go >/dev/null 2>&1 || {
echo '缺少 Go,请先在 WSL 中安装支持 toolchain 自动切换的 Go 1.24+ 并加入 PATH。' >&2
exit 1
}
command -v gcc >/dev/null 2>&1 || {
echo '缺少 gcc,请安装 build-essentialCGO 构建动态库需要)。' >&2
exit 1
}
echo "Go bootstrap: $(go version)"
echo "Go effective: $(go env GOVERSION)"
echo "GCC: $(gcc --version | head -n 1)"
echo 'CLIProxyAPI target: ABI 1 / RPC schema 3'