# 使用 Homebrew, Nix 安装 bic

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

## 安装

```sh
sudo av install brew:bic
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bic
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bic
```

  证据: nixpkgs package indexes: pkgs/by-name/bi/bic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:bic
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bic>
- **版本:** 1.0.0
- **来源摘要:** C interpreter and API explorer
- **主页:** <https://github.com/hexagonal-sun/bic>
- **仓库:** <https://github.com/hexagonal-sun/bic>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://github.com/hexagonal-sun/bic/archive/refs/tags/v1.0.0.tar.gz>
- **最后更新:** 2026-07-10T23:07:07-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- bic (cli)
- bic (别名)

## 依赖

- gmp

## 构建依赖

- autoconf
- autoconf-archive
- automake
- bison
- libtool
- pkgconf

## macOS 提供的库

- libedit

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.0
- 管理器更新时间: 2026-07-10
- 本地数据: OK
- 上游仓库: https://github.com/hexagonal-sun/bic
- 检测到的最新版本: v1.0.0 (当前)
## 项目历史与用法

bic is a C interpreter and API explorer that lets developers experiment with C APIs through a REPL and evaluate C source files.

### 项目历史

The public GitHub repository begins with an initial commit in July 2015, and release metadata records v0.9.1 in October 2019 followed by a first stable v1.0.0 release in February 2020.

The README describes bic as a tool for exploring and testing C APIs using a read-eval-print loop, with runtime dependencies on GNU Readline, GNU MP, and libffi.

### 采用历史

bic remains a niche developer tool, but Homebrew and Nix packaging make it easy to install as a command-line REPL for systems programmers who want to poke at C libraries interactively.

The README also documents Docker and Arch Linux AUR installation paths, showing adoption in lightweight developer experimentation workflows rather than mainstream language-runtime distribution.

### 使用方式

Running bic with no arguments opens a BIC> prompt where users can include system headers, declare variables, call C library functions, and inspect types or values with special REPL syntax.

The ~/.bic startup file is evaluated when the REPL starts, and source files can be evaluated with -s so that a C main function receives argc and argv.

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

bic is package-nerd interesting as a compact C REPL built from classic Unix development pieces: readline for interaction, flex/bison/autotools for building, GMP and libffi for runtime behavior, and a single-user dotfile for startup state.

It occupies the practical gap between compiling throwaway C programs and using a full debugger or notebook-style environment.

### 时间线

- 2015-07-16: Initial public GitHub commit.
- 2019-10-03: v0.9.1 release is published.
- 2020-02-19: v1.0.0 is published as the first stable release.

### Related projects

- GNU Readline provides the interactive command-line editing layer used by bic.
- libffi is part of bic's runtime dependency stack for calling C APIs dynamically.
- Flex, Bison, Automake, and Autoconf are part of the documented build toolchain.

### 来源

- <https://api.github.com/repos/hexagonal-sun/bic/commits?per_page=1&page=889>
- <https://api.github.com/repos/hexagonal-sun/bic/releases>
- <https://github.com/hexagonal-sun/bic/blob/master/README.org>
- <https://github.com/hexagonal-sun/bic/blob/master/configure.ac>


## 安全说明

generalized runtime or code generation signal.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.bic
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bic
- **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

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

- Nix - bic: normalized package name match | nixpkgs package indexes: pkgs/by-name/bi/bic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [picoc](https://pkg.so/zh-hans/brew/picoc/) - Shares pkgdb curated category or tags: c, cli, interpreter, language-runtime.
- [mawk](https://pkg.so/zh-hans/brew/mawk/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [rustpython](https://pkg.so/zh-hans/brew/rustpython/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [mujs](https://pkg.so/zh-hans/brew/mujs/) - Shares pkgdb curated category or tags: c, cli, interpreter, language-runtime.
- [cling](https://pkg.so/zh-hans/brew/cling/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, repl.
- [brainfuck](https://pkg.so/zh-hans/brew/brainfuck/) - Shares pkgdb curated category or tags: c, cli, interpreter, language-runtime.
- [cpi](https://pkg.so/zh-hans/brew/cpi/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, repl.
- [yaegi](https://pkg.so/zh-hans/brew/yaegi/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, repl.
- [woxi](https://pkg.so/zh-hans/brew/woxi/) - Local package facts share a topical domain. Shared terms: cli, interpreter, language, language-runtime, repl.

## Combined YAML source

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


## 来源

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