インストール
システム要件
Section titled “システム要件”| Component | 要件 |
|---|---|
| OS | Linux, macOS, Windows |
| Rust | 1.90+ |
| Memory | 4 GB RAM |
| Disk | 2 GB の空き容量 |
| Component | 要件 |
|---|---|
| Rust | 1.91 (latest) |
| Memory | 8 GB RAM |
| CPU | マルチコア processor |
Rust のインストール
Section titled “Rust のインストール”Rust がインストールされていない場合:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh正しい toolchain version を設定します:
rustup default 1.90component を build するための WASM target を追加します:
rustup target add wasm32-wasip2GTC CLI のインストール
Section titled “GTC CLI のインストール”cargo install greentic-cligit clone https://github.com/greenticai/greentic.gitcd greentic/greenticcargo build --release
# Add to PATHexport PATH="$PATH:$(pwd)/target/release"GitHub Releases からダウンロードします:
# macOS (Apple Silicon)curl -LO https://github.com/greenticai/greentic/releases/latest/download/gtc-darwin-arm64.tar.gztar -xzf gtc-darwin-arm64.tar.gzsudo mv gtc /usr/local/bin/
# macOS (Intel)curl -LO https://github.com/greenticai/greentic/releases/latest/download/gtc-darwin-x64.tar.gz
# Linux (x86_64)curl -LO https://github.com/greenticai/greentic/releases/latest/download/gtc-linux-x64.tar.gz
# Windows# Download gtc-windows-x64.zip from releasesインストールの確認
Section titled “インストールの確認”gtc --version期待される出力:
gtc 0.4.xオプション依存関係
Section titled “オプション依存関係”NATS (Message Bus)
Section titled “NATS (Message Bus)”production deployment 向け:
docker run -d --name nats -p 4222:4222 nats:latestbrew install nats-servernats-servernats.io からダウンロードします
Redis (Session Storage)
Section titled “Redis (Session Storage)”production の session persistence 向け:
docker run -d --name redis -p 6379:6379 redis:alpinebrew install redisredis-serverNgrok/Cloudflared (Public URLs)
Section titled “Ngrok/Cloudflared (Public URLs)”webhook ベースの provider (Telegram、Slack など) 向け:
# Installbrew install ngrok/ngrok/ngrok # macOS# or download from https://ngrok.com/download
# Configurengrok config add-authtoken YOUR_TOKEN
# Runngrok http 8080# Installbrew install cloudflared # macOS# or download from https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/
# Runcloudflared tunnel --url http://localhost:8080Development Tools
Section titled “Development Tools”Pack Builder
Section titled “Pack Builder”.gtpack archive を build します:
cargo install greentic-packFlow Validator
Section titled “Flow Validator”flow definition を検証します:
cargo install greentic-flowComponent Authoring
Section titled “Component Authoring”WASM component を作成します:
cargo install greentic-componentセットアップの検証
Section titled “セットアップの検証”すべてが正しく動作していることを確認するには、次を実行します:
# Check GTC CLIgtc --help
# Check Rust WASM targetrustup target list --installed | grep wasm32-wasip2
# Create and run a test bundlegtc wizard --dry-runトラブルシューティング
Section titled “トラブルシューティング”よくある問題
Section titled “よくある問題”Error: “wasm32-wasip2 target not found”
rustup target add wasm32-wasip2Error: “Cannot connect to NATS”
# Start embedded NATS with gtc startgtc start ./my-bundle --nats onError: “Permission denied”
# On Linux/macOS, ensure binary is executablechmod +x /usr/local/bin/gtc次のステップ
Section titled “次のステップ”- Quick Start - 最初の digital worker を作成する
- Architecture Overview - platform を理解する