インストール
システム要件
Section titled “システム要件”| Component | 要件 |
|---|---|
| OS | Linux, macOS, Windows |
| Rust | 1.95+ |
| Memory | 4 GB RAM |
| Disk | 2 GB の空き容量 |
| Component | 要件 |
|---|---|
| Rust | 1.95+ (latest supported) |
| 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.95component を build するための WASM target を追加します:
rustup target add wasm32-wasip2GTC CLI のインストール
Section titled “GTC CLI のインストール”まず gtc router をインストールし、その後 gtc install で Greentic companion tools をインストールします。通常利用では greentic-cli や個別の companion crates を直接インストールしないでください。gtc install が delegated binaries を router と揃えます。
cargo install cargo-binstallcargo binstall gtcgtc installgtc doctorgit clone https://github.com/greenticai/greentic.gitcd greentic/greenticcargo build --release
# Add to PATHexport PATH="$PATH:$(pwd)/target/release"gtc installgtc doctorGitHub 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 --versiongtc doctorオプション依存関係
Section titled “オプション依存関係”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”Greentic Toolchain
Section titled “Greentic Toolchain”gtc router が使う delegated Greentic binaries をインストールまたは更新します:
gtc installInstall plan を確認するには gtc install --dry-run を使います。Controlled environments では toolchain を pin できます:
gtc install --release 1.0.15gtc install --manifest ./greentic-toolchain.jsonComponent Authoring
Section titled “Component Authoring”gtc install は standard companion tools をインストールします。Standalone component development では cargo-component も利用できます:
cargo binstall cargo-componentその後、delegated component surface を使います:
gtc dev component --helpセットアップの検証
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: “Permission denied”
# On Linux/macOS, ensure binary is executablechmod +x /usr/local/bin/gtc次のステップ
Section titled “次のステップ”- Quick Start - 最初の digital worker を作成する
- Architecture Overview - platform を理解する