# libcmph を Homebrew, apk, apt, MacPorts, Nix でインストール

libcmph のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:libcmph
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install libcmph
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmph
```

  証拠: MacPorts ports tree: textproc/cmph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libcmph
```

  証拠: Alpine Linux edge package indexes: libcmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libcmph-dev
```

  証拠: Debian stable package indexes: libcmph-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cmph
```

  証拠: nixpkgs package indexes: pkgs/by-name/cm/cmph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:libcmph
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/libcmph>
- **バージョン:** 2.0.2
- **ソース概要:** C minimal perfect hashing library
- **ホームページ:** <https://cmph.sourceforge.net/>
- **リポジトリ:** <https://sourceforge.net/p/cmph/git>
- **上流ドキュメント:** <https://cmph.sourceforge.net/>
- **ライセンス:** LGPL-2.1-only OR MPL-1.1
- **ソースアーカイブ:** <https://downloads.sourceforge.net/project/cmph/v2.0.2/cmph-2.0.2.tar.gz>
- **最終更新:** 2026-06-19T12:31:49-07:00
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- cmph (cli)
- cmph (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 2.0.2
- マネージャ更新日: 2026-06-19
- ローカルデータ: OK
- 上流リポジトリ: https://cmph.sourceforge.net/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

CMPH is a C library and command-line tool for building minimal perfect hash functions. It targets static key sets where compact storage and collision-free lookup matter more than insertion or deletion.

### プロジェクトの歴史

The CMPH site frames the project around a gap in free software support for minimal perfect hashing, distinguishing it from GNU gperf by emphasizing very large key sets rather than small generated perfect-hash functions. Its documentation collects several algorithms, including CHD, BDZ, BMZ, BRZ, CHM, and FCH.

By the 1.x and 2.x news entries, CMPH had grown beyond a single algorithm implementation into a practical library with packed-function support, memory-mappable output, an external-memory BRZ path for very large sets, and an experimental C++ interface for map-like use cases.

### 採用の歴史

CMPH has remained a niche but durable package because minimal perfect hashes are a specialized data-structure tool. It appears in Homebrew, Debian and Ubuntu development packages, MacPorts, Nix, Alpine, and other package collections for developers who need static dictionary or key-index construction.

### 使われ方

Typical usage is offline construction of a hash function from a fixed key set, followed by storage or embedding of the generated function. The official examples show the C API creating a minimal perfect hash from an in-memory vector and dumping it to a file.

### パッケージ好きにとっての重要性

CMPH is the kind of package that matters disproportionately to systems and search developers: it packages academic minimal-perfect-hashing algorithms into a reusable C interface and a small CLI. Its appeal is that it turns a static corpus into dense one-probe lookup tables without hauling in a database.

### タイムライン

- 0.9: CHD and CHD_PH support highlighted for compact internal-memory minimal perfect hashes.
- 1.0: Bugfix-only release before a planned revamp of code and algorithms.
- 1.1: CHD_PC bug fix and test reorganization.
- 2.0: Warning cleanup and experimental C++ mph_map and mph_index interface.

### Related projects

- Related projects and concepts include GNU gperf, static hash tables, CHD, BDZ, BMZ, BRZ, CHM, and FCH minimal-perfect-hashing algorithms.

### ソース

- <https://cmph.sourceforge.net/>
- <https://cmph.sourceforge.net/concepts.html>
- <https://formulae.brew.sh/formula/libcmph>
- <https://sourceforge.net/p/cmph/git>


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- apk - libcmph - 2.0.2-r6: normalized package name match | Alpine Linux edge package indexes: libcmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal perfect hash C library | https://cmph.sourceforge.net/
- MacPorts - cmph: installed executable or alias match | MacPorts ports tree: textproc/cmph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - libcmph-dev - 2.0.2-3.1: installed executable or alias match | Debian stable package indexes: libcmph-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C Minimal Perfect Hashing Library development files | http://cmph.sourceforge.net
- Debian apt - libcmph-tools - 2.0.2-3.1: installed executable or alias match | Debian stable package indexes: libcmph-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C Minimal Perfect Hashing Library command line utilities | http://cmph.sourceforge.net
- Debian apt - libcmph0t64 - 2.0.2-3.1: installed executable or alias match | Debian stable package indexes: libcmph0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C Minimal Perfect Hashing Library | http://cmph.sourceforge.net
- Nix - cmph: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cm/cmph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcmph-dev - 2.0.2-3.1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcmph-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C Minimal Perfect Hashing Library development files | http://cmph.sourceforge.net
- Ubuntu apt - libcmph-tools - 2.0.2-3.1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcmph-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C Minimal Perfect Hashing Library command line utilities | http://cmph.sourceforge.net
- Ubuntu apt - libcmph0t64 - 2.0.2-3.1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcmph0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C Minimal Perfect Hashing Library | http://cmph.sourceforge.net
- apk - cmph - 2.0.2-r6: installed executable or alias match | Alpine Linux edge package indexes: cmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal hash C library - utility application | https://cmph.sourceforge.net/
- apk - cmph-dev - 2.0.2-r6: installed executable or alias match | Alpine Linux edge package indexes: cmph-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal hash C library - utility application (development files) | https://cmph.sourceforge.net/
- apk - cmph-doc - 2.0.2-r6: installed executable or alias match | Alpine Linux edge package indexes: cmph-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal hash C library - utility application (documentation) | https://cmph.sourceforge.net/


## 関連リンク

- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [flickcurl](https://www.automicvault.com/ja/pkg/brew/flickcurl/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [glib](https://www.automicvault.com/ja/pkg/brew/glib/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [gwenhywfar](https://www.automicvault.com/ja/pkg/brew/gwenhywfar/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [hidapi](https://www.automicvault.com/ja/pkg/brew/hidapi/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [json-glib](https://www.automicvault.com/ja/pkg/brew/json-glib/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [libdatrie](https://www.automicvault.com/ja/pkg/brew/libdatrie/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [libdeflate](https://www.automicvault.com/ja/pkg/brew/libdeflate/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [nspr](https://www.automicvault.com/ja/pkg/brew/nspr/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [wv2](https://www.automicvault.com/ja/pkg/brew/wv2/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, libraries, library.

## Combined YAML source

View the package source record on GitHub. [combined/libcmph.yml](https://github.com/automic-vault/db/blob/main/combined/libcmph.yml)


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
