# 使用 Homebrew 安装 llgo

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

## 安装

```sh
sudo av install brew:llgo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install llgo
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:llgo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/llgo>
- **版本:** 0.12.2
- **来源摘要:** Go compiler based on LLVM integrate with the C ecosystem and Python
- **主页:** <https://github.com/xgo-dev/llgo>
- **仓库:** <https://github.com/xgo-dev/llgo>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/xgo-dev/llgo/archive/refs/tags/v0.12.2.tar.gz>
- **最后更新:** 2026-07-26T13:41:02+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- llgo (cli)
- llgo (别名)

## 依赖

- bdw-gc
- go@1.25
- libuv
- lld@19
- llvm@19
- openssl@3
- pkgconf

## macOS 提供的库

- libffi

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.12.2
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/xgo-dev/llgo
- 检测到的最新版本: v0.12.2 (当前)
## 项目历史与用法

llgo is an LLVM-based Go compiler from the XGo/GoPlus ecosystem. Its stated purpose is to make Go source code interoperate more directly with the C ABI and with ecosystems such as C/C++, Python, JavaScript, Objective-C, and Swift.

### 项目历史

The public project proposal for llgo was opened in February 2024 in the GoPlus/XGo issue tracker, describing a Go compiler based on LLVM for better integration with the C ecosystem. The repository release history includes v0.1.0 on April 21, 2024.

The README frames LLGo as 'Go * C ecosystem': compatible with Go through source syntax and compatible with C-family ecosystems through ABI linkage. Examples include importing C standard library wrappers and Python libraries.

### 采用历史

llgo is a niche compiler project rather than a mainstream Go distribution. Its adoption story is mainly among XGo/GoPlus users and developers interested in Go-like syntax with lower-friction access to C ABI libraries, Python modules, WebAssembly, embedded development, and data-science tooling.

### 使用方式

The command-line tool is used to build or run LLGo programs, including examples that import C wrappers or Python-facing packages. In Homebrew, the formula gives macOS and Linux users a packaged entry point without cloning and bootstrapping the compiler from source.

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

llgo is interesting because it packages a language experiment at the boundary between Go, LLVM, and foreign-function ecosystems. It is not just another Go tool; it is a compiler-line package that asks whether Go-style code can use LLVM and C ABI linkage as its integration layer.

### 时间线

- 2024-02-13: GoPlus/XGo issue #1734 proposed llgo as an LLVM-based Go compiler.
- 2024-04-21: v0.1.0 appeared in GitHub releases.
- 2026-03-09: v0.13.0 appeared in GitHub releases.

### Related projects

- XGo/GoPlus is the parent ecosystem described by the llgo README.
- LLVM provides the compiler infrastructure foundation.
- The goplus/lib packages provide C, C++, and Python-facing libraries used by llgo examples.

### 来源

- <https://formulae.brew.sh/formula/llgo>
- <https://github.com/goplus/gop/issues/1734>
- <https://github.com/goplus/llgo>
- <https://github.com/xgo-dev/llgo/releases/tag/v0.1.0>
- <https://github.com/xgo-dev/llgo/releases/tag/v0.13.0>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Runtime dependency declared by Homebrew.
- [llvm@19](https://pkg.so/zh-hans/brew/llvm-19/) - Runtime dependency declared by Homebrew.
- [ldc](https://pkg.so/zh-hans/brew/ldc/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, llvm.
- [lisette](https://pkg.so/zh-hans/brew/lisette/) - Shares pkgdb curated category or tags: cli, compiler, go, language-runtime.
- [orc](https://pkg.so/zh-hans/brew/orc/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime.
- [cython](https://pkg.so/zh-hans/brew/cython/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime.
- [c3c](https://pkg.so/zh-hans/brew/c3c/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime.
- [dmd](https://pkg.so/zh-hans/brew/dmd/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime.
- [bigloo](https://pkg.so/zh-hans/brew/bigloo/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime.
- [nesc](https://pkg.so/zh-hans/brew/nesc/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime.
- [sagittarius-scheme](https://pkg.so/zh-hans/brew/sagittarius-scheme/) - Local package facts share a topical domain. Shared terms: bdw, bdw-gc, cli, compiler, language.
- [pyenv](https://pkg.so/zh-hans/brew/pyenv/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, language, language-runtime, openssl, openssl-3.

## Combined YAML source

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