# 使用 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
- **版本:** 1.0.0
- **来源摘要:** C interpreter and API explorer
- **主页:** <https://github.com/hexagonal-sun/bic>
- **仓库:** <https://github.com/hexagonal-sun/bic>
- **最后更新:** 2026-07-10T23:07:07-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
