# 使用 Homebrew, Nix 安装 flatcc

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

## 安装

```sh
sudo av install brew:flatcc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flatcc
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#flatcc
```

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

## 软件包事实

- **软件包键:** brew:flatcc
- **软件包管理器:** Homebrew
- **版本:** 0.6.3
- **来源摘要:** FlatBuffers Compiler and Library in C for C
- **主页:** <https://github.com/dvidelabs/flatcc>
- **仓库:** <https://github.com/dvidelabs/flatcc>
- **最后更新:** 2026-07-29T12:03:27Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- flatcc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.6.3
## 项目历史与用法

flatcc is a FlatBuffers compiler and runtime library written in C for C. Its README emphasizes minimal dependencies, generated C headers, a standalone flatcc executable, and runtime libraries for building, verifying, parsing, and printing FlatBuffers.

### 项目历史

The official git history starts with an initial public release v0.1.0 on 2015-11-09. The README explains that flatcc is implemented as a standalone tool rather than as an extension of Google's flatc so it can provide a pure portable C schema compiler and fail gracefully on abusive input in long-running processes.

### 采用历史

flatcc serves C projects that want FlatBuffers compatibility without pulling in a C++ compiler/runtime model. Its README describes CI-tested Ubuntu, macOS, and Windows support, user-reported portability, and a no-CMake integration path once the generator has produced headers.

### 使用方式

Users build flatcc, run it against .fbs schema files, include generated headers, and link only the needed C runtime files. The README contrasts flatcc's runtime JSON handling with Google's flatc command-line JSON conversion, presenting the tools as complementary.

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

flatcc is package-nerd significant because it is a compatibility-layer package: it tracks the FlatBuffers format while optimizing for C-only consumers, small binaries, generated headers, and vendorable runtime source files.

### 时间线

- 2015: Initial public release v0.1.0.
- 2016: v0.4.0 tag; README notes big-endian support as of release 0.4.0.
- 2022: v0.6.1 tag appears in the official git history.

### Related projects

- The README explicitly relates flatcc to Google FlatBuffers and the flatc compiler, while distinguishing flatcc as the FlatBuffers C Compiler.

### 来源

- <https://formulae.brew.sh/formula/flatcc>
- <https://github.com/dvidelabs/flatcc>
- <https://raw.githubusercontent.com/dvidelabs/flatcc/master/README.md>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Nix - flatcc: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flatcc/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/flatcc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/flatcc.yml)


## 来源

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