# 使用 Homebrew, MacPorts, Nix 安装 fbthrift

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

## 安装

```sh
sudo av install brew:fbthrift
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fbthrift
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fbthrift
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fbthrift
```

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

## 软件包事实

- **软件包键:** brew:fbthrift
- **软件包管理器:** Homebrew
- **版本:** 2026.07.27.00
- **来源摘要:** Facebook's branch of Apache Thrift, including a new C++ server
- **主页:** <https://github.com/facebook/fbthrift>
- **仓库:** <https://github.com/facebook/fbthrift>
- **最后更新:** 2026-07-28T07:08:45Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- thrift1 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Facebook Thrift, usually packaged as fbthrift, is Meta's open-source branch of Thrift: a serialization, code-generation, and RPC framework for service communication. The project matters to package users because it ships the `thrift1` compiler and C++/Python-oriented runtime pieces used to generate service types, clients, and servers from `.thrift` interface files.

The project is significant because it is not just a repackaged Apache Thrift release. The README describes it as an evolved internal Facebook branch that was re-released to the open-source community in February 2014, with a rewritten compiler and a fully asynchronous Thrift server.

### 项目历史

Thrift began as the cross-language service framework associated with Facebook and Apache Thrift. Apache Thrift's own site describes the framework as combining a software stack with a code-generation engine for scalable cross-language services development.

Facebook maintained an internal branch for production service communication, then publicly re-released that branch as fbthrift in 2014. The public repository was created in 2013, and the project README states that the open-source release initially tracked Apache Thrift closely before diverging in new directions.

### 采用历史

The strongest adoption signal is internal: the fbthrift README says most Facebook services use Thrift for RPC, and some storage systems use Thrift for serializing records on disk.

Outside Meta, fbthrift is mostly adopted by developers who specifically need Meta's C++ Thrift stack rather than the Apache distribution. Package managers expose it as a compiler/runtime toolchain, with Homebrew's formula providing the `thrift1` executable.

### 使用方式

Users write `.thrift` files to define serializable types and service interfaces, then run the compiler to generate language-specific structures, clients, and server stubs. The README frames Thrift as a code generator, serialization framework, and RPC framework.

The package is most relevant for C++ service developers because fbthrift emphasizes cpp2 support, asynchronous servers, and integration with other Meta C++ infrastructure such as Folly.

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

fbthrift is the package-manager face of Meta's Thrift branch: a heavy but important toolchain package for people who need compatibility with Facebook/Meta thrift definitions, C++ service infrastructure, or projects built against fbthrift rather than Apache Thrift.

It also illustrates a common packaging split: the upstream concept is Thrift, but the formula name distinguishes Meta's branch from the Apache implementation so both can exist in package ecosystems without pretending they are interchangeable.

### 时间线

- 2007: Apache Thrift material describes the cross-language service framework and compiler model.
- 2013: The public facebook/fbthrift GitHub repository was created.
- 2014: Facebook re-released its evolved internal Thrift branch to the open-source community.
- 2014 onward: fbthrift diverged from Apache Thrift with a rewritten compiler and asynchronous C++ server support.

### Related projects

- Apache Thrift is the upstream family and comparison point, while fbthrift is Meta's evolved branch.
- Folly, Fizz, Wangle, and other Meta C++ libraries appear in the fbthrift build dependency stack.

### 来源

- <https://github.com/facebook/fbthrift>
- <https://raw.githubusercontent.com/facebook/fbthrift/main/README.md>
- <https://engineering.fb.com/2014/02/20/open-source/under-the-hood-building-and-open-sourcing-fbthrift/>
- <https://thrift.apache.org/>


## 安全说明

没有找到 fbthrift 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - fbthrift: normalized package name match | nixpkgs package indexes: pkgs/by-name/fb/fbthrift/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - fbthrift: normalized package name match | MacPorts ports tree: devel/fbthrift/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/fbthrift.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fbthrift.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
