# 使用 Homebrew, MacPorts, Nix, apt, zypper 安装 gecode

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

## 安装

```sh
sudo av install brew:gecode
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gecode
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gecode
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gecode
```

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

- Debian apt (92%):

```sh
sudo apt install libgecode-dev
```

  证据: Debian stable package indexes: libgecode-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Ubuntu apt (92%):

```sh
sudo apt install flatzinc
```

  证据: Ubuntu 24.04 LTS package indexes: flatzinc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install gecode-devel
```

  证据: openSUSE Tumbleweed package metadata: gecode-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:gecode
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gecode>
- **版本:** 6.4.0
- **来源摘要:** Toolkit for developing constraint-based systems and applications
- **主页:** <https://www.gecode.dev/>
- **仓库:** <https://github.com/Gecode/gecode>
- **上游文档:** <https://www.gecode.dev/>
- **许可证:** MIT
- **源码归档:** <https://github.com/Gecode/gecode/archive/refs/tags/release-6.4.0.tar.gz>
- **最后更新:** 2026-07-16T10:35:30Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fzn-gecode (cli)
- mzn-gecode (cli)
- fzn-gecode (别名)
- mzn-gecode (别名)

## 依赖

- qtbase

## 构建依赖

- uv

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.4.0
- 管理器更新时间: 2026-07-16
- 本地数据: OK
- 上游仓库: https://github.com/Gecode/gecode
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Gecode is the Generic Constraint Development Environment, an open source C++ toolkit for developing constraint-based systems and applications.

### 项目历史

The official Gecode site presents the project as a modular and extensible C++ constraint solver with support for custom constraints, branching strategies, search engines, and variable domains. Its historical changelog records Gecode 1.0.0 on 2005-12-06.

### 采用历史

Gecode's official news archive tracks its use in solver and modeling ecosystems: FlatZinc support was announced in 2007, repeated MiniZinc Challenge wins were reported from 2008 through 2012, Homebrew availability was announced in 2011, and SAP adoption for advanced variant configuration was reported in 2018.

### 使用方式

Developers use Gecode as a C++ toolkit and through command-line front ends such as FlatZinc and MiniZinc-related tooling. The official documentation emphasizes tutorial and reference material for modeling, search, installation, linking, and platform-specific builds.

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

Gecode is significant in package collections because it is both a library and a solver executable dependency for constraint-programming workflows, especially MiniZinc and FlatZinc users who care about solver availability, ABI compatibility, and platform packaging.

### 时间线

- 2005: Gecode 1.0.0 released.
- 2007: FlatZinc for Gecode 1.0 released.
- 2008-2012: Gecode won MiniZinc Challenge gold medals across multiple years.
- 2011: Gecode became installable on Mac OS via Homebrew.
- 2018: SAP use of Gecode for advanced variant configuration was reported.
- 2019: Gecode 6.2.0 released.

### Related projects

- MiniZinc, FlatZinc, AMPL, ECLiPSe, YAP Prolog, and SAP advanced variant configuration are named in Gecode's official site or news archive as related interfaces, uses, or integrations.

### 来源

- <https://www.gecode.dev/>
- <https://www.gecode.dev/doc/2.2.0/reference/PageChange.html>
- <https://www.gecode.dev/news.html>


## 安全说明

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:** gecode
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - libgecode-dev - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecode-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic constraint development environment | https://www.gecode.org/
- Debian apt - libgecode-doc - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecode-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic constraint development environment | https://www.gecode.org/
- Debian apt - libgecode49t64 - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecode49t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic constraint development environment | https://www.gecode.org/
- Debian apt - libgecodeflatzinc49t64 - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecodeflatzinc49t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Gecode support for FlatZinc modelling language | http://www.gecode.org/flatzinc.html
- Debian apt - libgecodegist49t64 - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecodegist49t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Gecode Interactive Search Tool library | https://www.gecode.org/
- Nix - gecode: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/gecode/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - flatzinc - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: flatzinc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | constraint problem modelling language | http://www.gecode.org/flatzinc.html
- Ubuntu apt - libgecode-dev - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecode-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic constraint development environment | http://www.gecode.org/
- Ubuntu apt - libgecode-doc - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecode-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic constraint development environment | http://www.gecode.org/
- Ubuntu apt - libgecode49t64 - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecode49t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic constraint development environment | http://www.gecode.org/
- Ubuntu apt - libgecodeflatzinc49t64 - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecodeflatzinc49t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Gecode support for FlatZinc modelling language | http://www.gecode.org/flatzinc.html
- Ubuntu apt - libgecodegist49t64 - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecodegist49t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Gecode Interactive Search Tool library | http://www.gecode.org/
- zypper - gecode-devel - 6.3.0~git20211208.6b09bea4-1.14: normalized package name match | openSUSE Tumbleweed package metadata: gecode-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C++ toolkit for developing constraint-based systems | https://www.gecode.org/
- zypper - gecode-minizinc - 6.3.0~git20211208.6b09bea4-1.14: normalized package name match | openSUSE Tumbleweed package metadata: gecode-minizinc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Gecode minizinc solver | https://www.gecode.org/
- zypper - libgecode51 - 6.3.0~git20211208.6b09bea4-1.14: normalized package name match | openSUSE Tumbleweed package metadata: libgecode51 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C++ toolkit for developing constraint-based systems | https://www.gecode.org/
- MacPorts - gecode: normalized package name match | MacPorts ports tree: devel/gecode/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [qtbase](https://pkg.so/zh-hans/brew/qtbase/) - Runtime dependency declared by Homebrew.
- [uv](https://pkg.so/zh-hans/brew/uv/) - Build dependency declared by Homebrew.
- [minizinc](https://pkg.so/zh-hans/brew/minizinc/) - Popular package that depends on this formula.
- [fltk](https://pkg.so/zh-hans/brew/fltk/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools, toolkit.
- [fox](https://pkg.so/zh-hans/brew/fox/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools, toolkit.
- [ccache](https://pkg.so/zh-hans/brew/ccache/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools.
- [gtk+3](https://pkg.so/zh-hans/brew/gtk-3/) - Shares pkgdb curated category or tags: cli, developer-tools, toolkit.
- [qt](https://pkg.so/zh-hans/brew/qt/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools.
- [swig](https://pkg.so/zh-hans/brew/swig/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools.
- [qt@5](https://pkg.so/zh-hans/brew/qt-5/) - Shares pkgdb curated category or tags: c-plus-plus, cli, developer-tools.
- [poco](https://pkg.so/zh-hans/brew/poco/) - Local package facts share a topical domain. Shared terms: applications, based, c-plus-plus, cli, developer.
- [brpc](https://pkg.so/zh-hans/brew/brpc/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, developer, developer-tools, plus.

## Combined YAML source

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