# 使用 Homebrew, winget 安装 harbour

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

## 安装

```sh
sudo av install brew:harbour
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install harbour
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id Harbour.Harbour -e
```

  证据: Windows Package Manager source index: Harbour.Harbour from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:harbour
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/harbour>
- **版本:** 3.0.0
- **来源摘要:** Portable, xBase-compatible programming language and environment
- **主页:** <https://harbour.github.io>
- **仓库:** <https://github.com/harbour/core>
- **上游文档:** <https://harbour.github.io>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/harbour-project/source/3.0.0/harbour-3.0.0.tar.bz2>
- **最后更新:** 2026-06-25T13:37:45+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- harbour (cli)
- hb3rdpat.hbs (cli)
- hbi18n (cli)
- hbmk2 (cli)
- hbpp (cli)
- hbtest (cli)
- harbour (别名)
- hb3rdpat.hbs (别名)
- hbi18n (别名)
- hbmk2 (别名)
- hbpp (别名)
- hbtest (别名)

## 依赖

- jpeg-turbo
- libharu
- libpng
- libxdiff
- minizip
- pcre

## macOS 提供的库

- bzip2
- curl
- expat
- ncurses
- sqlite

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.0
- 管理器更新时间: 2026-06-25
- 本地数据: OK
- 上游仓库: https://harbour.github.io
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Harbour is a free software implementation of a Clipper/xBase-compatible programming language, compiler, runtime, build system, and library environment. It exists to keep xBase-style business applications portable across modern systems.

### 项目历史

The official Harbour FAQ says the idea of a free software Clipper compiler had circulated in the comp.lang.clipper community, and that actual development began in early 1999 when Antonio Linares started discussing a Clipper grammar built with Lex and Yacc.

The official homepage describes Harbour as a cross-platform, multi-threading, object-oriented, scriptable language implementation with compiler and runtime libraries, UI/database/I/O backends, its own build system, and bindings for popular APIs.

The homepage lists a stable 3.0.0 release dated 2011-07-17, while the GitHub repository remains the official source-control location for the core implementation.

### 采用历史

Harbour's audience is narrower than a mainstream language runtime: it serves developers maintaining or modernizing CA-Clipper, dBase, FoxPro-like, and other xBase-family code. Its value is continuity for business/database applications that can be compiled and run on newer operating systems.

The supplied package facts show a small package-manager footprint, which fits a specialist language environment rather than a foundational system dependency.

### 使用方式

Users write or port xBase/Clipper-style source, compile it with Harbour tools, and link against Harbour runtime libraries and optional UI, database, networking, crypto, compression, or platform bindings.

The Homebrew package exposes compiler and tool executables such as `harbour`, `hbmk2`, `hbpp`, `hbi18n`, and `hbtest`, making it useful for rebuilding legacy applications or experimenting with xBase code on macOS.

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

Harbour is notable to package collectors because it preserves a business-programming lineage that otherwise belongs to DOS and early PC database tooling. It is a compatibility bridge, not just another compiler.

Packaging such a toolchain means caring about C compiler interoperability, runtime library layout, build helper tools, and cross-platform assumptions carried forward from Clipper-era source code.

### 时间线

- 1999: Official FAQ says actual Harbour development began in early 1999.
- 2000s: Harbour grows into a compiler plus runtime libraries, backends, build tooling, and API bindings.
- 2011-07-17: Official homepage lists Harbour 3.0.0 stable release.
- 2020s: Official GitHub repository hosts Harbour core as a portable xBase-compatible language and environment.

### Related projects

- Related projects and technologies include CA-Clipper, dBase, FoxPro, xHarbour, xBase++, FlagShip, DBF file tooling, and GUI libraries used by Harbour applications.
- Harbour also relates to C compilers because Harbour-generated or Harbour-linked programs depend on the platform C toolchain.

### 来源

- <https://github.com/harbour/core>
- <https://harbour.github.io/>
- <https://harbour.github.io/doc/>
- <https://harbour.github.io/faq>


## 安全说明

generalized runtime or code generation signal.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** harbour
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- winget - Harbour.Harbour: normalized package name match | Windows Package Manager source index: Harbour.Harbour from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [pcre](https://pkg.so/zh-hans/brew/pcre/) - Runtime dependency declared by Homebrew.
- [haxe](https://pkg.so/zh-hans/brew/haxe/) - Shares pkgdb curated category or tags: cli, compiler, cross-platform, language-runtime, programming-language.
- [go](https://pkg.so/zh-hans/brew/go/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [zig](https://pkg.so/zh-hans/brew/zig/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [dart-sdk](https://pkg.so/zh-hans/brew/dart-sdk/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [mono](https://pkg.so/zh-hans/brew/mono/) - Shares pkgdb curated category or tags: cli, compiler, cross-platform, language-runtime.
- [gambit-scheme](https://pkg.so/zh-hans/brew/gambit-scheme/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [halide](https://pkg.so/zh-hans/brew/halide/) - Local package facts share a topical domain. Shared terms: cli, compiler, jpeg, jpeg-turbo, language.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Local package facts share a topical domain. Shared terms: cli, compiler, jpeg, jpeg-turbo, language.

## Combined YAML source

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