# 使用 Homebrew, apt, MacPorts 安装 chaiscript

查看 chaiscript 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:chaiscript
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chaiscript
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install chai
```

  证据: MacPorts ports tree: devel/chai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install chai
```

  证据: Debian stable package indexes: chai from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:chaiscript
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/chaiscript>
- **版本:** 6.1.0
- **来源摘要:** Easy to use embedded scripting language for C++
- **主页:** <https://chaiscript.com/>
- **仓库:** <https://github.com/ChaiScript/ChaiScript>
- **上游文档:** <https://chaiscript.com/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/ChaiScript/ChaiScript/archive/refs/tags/v6.1.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- chai (cli)
- chai (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.1.0
- 本地数据: OK
- 上游仓库: https://github.com/ChaiScript/ChaiScript
- 检测到的最新版本: v6.1.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

ChaiScript is an embedded scripting language designed for C++ applications. Its package identity is closer to a language runtime and embeddable library than to a standalone command, though package managers commonly expose a chai executable as well.

### 项目历史

The public GitHub repository dates to January 2011. The README describes ChaiScript as a language designed from the ground up to target C++ and modern C++ development, with a header-only integration style and type-safe bindings between C++ and scripts.

GitHub releases show mature 4.x and 5.x releases by 2014, a 6.0.0 release in 2017, and 6.1.0 in 2018. The README states that building ChaiScript requires a C++17 compiler.

### 采用历史

ChaiScript is packaged in Homebrew as chaiscript and appears in the input package facts for Debian, Ubuntu, MacPorts, and vcpkg-oriented usage. The README specifically documents vcpkg installation, which is important for C++ developers consuming it as a library dependency.

### 使用方式

Typical usage is to add the ChaiScript include directory, include chaiscript/chaiscript.hpp, instantiate chaiscript::ChaiScript, then evaluate script strings or files. Host applications register C++ functions with the engine so scripts can call into native code.

### 为什么软件包爱好者会关心

ChaiScript is package-nerd interesting because it is a C++-native embeddable language distributed across general-purpose package managers and C++ dependency managers. It represents the small but persistent category of scripting runtimes packaged primarily so native applications can embed them.

### 时间线

- 2011: GitHub repository created.
- 2014: 4.x and 5.x releases published on GitHub.
- 2017: 6.0.0 release published.
- 2018: 6.1.0 release published and used by the Homebrew stable formula.
- 2026: Repository metadata still shows the project as unarchived.

### Related projects

- The README compares ChaiScript's surface language to ECMAScript-style scripting.
- vcpkg is an officially documented installation route for consuming ChaiScript from C++ projects.

### 来源

- <https://chaiscript.com/docs.html>
- <https://github.com/ChaiScript/ChaiScript#readme>
- <https://github.com/ChaiScript/ChaiScript/releases>
- <https://api.github.com/repos/ChaiScript/ChaiScript>
- <https://formulae.brew.sh/formula/chaiscript>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** chaiscript
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- MacPorts - chai: installed executable or alias match | MacPorts ports tree: devel/chai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - chai - 4.3.7~ds1+~cs9.7.21-1: installed executable or alias match | Debian stable package indexes: chai from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | assertion library for Node.js | https://chaijs.com
- Ubuntu apt - chai - 4.3.7~ds1+~cs9.7.21-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: chai from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | assertion library for Node.js | https://chaijs.com


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [cue](https://pkg.so/zh-hans/brew/cue/) - Shares pkgdb curated category or tags: cli, language, language-runtime.
- [cling](https://pkg.so/zh-hans/brew/cling/) - Shares pkgdb curated category or tags: cli, cpp, language-runtime.
- [portable-ruby](https://pkg.so/zh-hans/brew/portable-ruby/) - Shares pkgdb curated category or tags: cli, language-runtime, scripting-language.
- [jimtcl](https://pkg.so/zh-hans/brew/jimtcl/) - Shares pkgdb curated category or tags: cli, language-runtime, scripting-language.
- [cbmbasic](https://pkg.so/zh-hans/brew/cbmbasic/) - Shares pkgdb curated category or tags: cli, language-runtime, scripting-language.
- [risor](https://pkg.so/zh-hans/brew/risor/) - Shares pkgdb curated category or tags: cli, language-runtime, scripting-language.
- [rhai](https://pkg.so/zh-hans/brew/rhai/) - Shares pkgdb curated category or tags: cli, language-runtime, scripting-language.
- [umka-lang](https://pkg.so/zh-hans/brew/umka-lang/) - Shares pkgdb curated category or tags: cli, language-runtime, scripting-language.

## Combined YAML source

View the package source record on GitHub. [combined/chaiscript.yml](https://github.com/mxcl/pkgdb/blob/main/combined/chaiscript.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
