macOS
brew install libcmphlocal Homebrew formula metadata
sudo port install cmphMacPorts ports tree · textproc/cmph/Portfile · 来源: api.github.com
安装
brew install libcmphlocal Homebrew formula metadata
sudo port install cmphMacPorts ports tree · textproc/cmph/Portfile · 来源: api.github.com
sudo apk add libcmphAlpine Linux edge package indexes · libcmph · 来源: dl-cdn.alpinelinux.org
sudo apt install libcmph-devDebian stable package indexes · libcmph-dev · 来源: deb.debian.org
nix profile install nixpkgs#cmphnixpkgs package indexes · pkgs/by-name/cm/cmph/package.nix · 来源: api.github.com
概览
C minimal perfect hashing library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cmph | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:libcmph |
|---|---|
| 版本 | 2.0.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libcmph |
| 主页 | 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 |
| Pulse | updated |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libcmph 2.0.2-r6
A minimal perfect hash C library
sudo apk add libcmphcmph
sudo port install cmphlibcmph-dev 2.0.2-3.1
C Minimal Perfect Hashing Library development files
sudo apt install libcmph-devlibcmph-tools 2.0.2-3.1
C Minimal Perfect Hashing Library command line utilities
sudo apt install libcmph-toolslibcmph0t64 2.0.2-3.1
C Minimal Perfect Hashing Library
sudo apt install libcmph0t64cmph
nix profile install nixpkgs#cmphlibcmph-dev 2.0.2-3.1build1
C Minimal Perfect Hashing Library development files
sudo apt install libcmph-devlibcmph-tools 2.0.2-3.1build1
C Minimal Perfect Hashing Library command line utilities
sudo apt install libcmph-toolslibcmph0t64 2.0.2-3.1build1
C Minimal Perfect Hashing Library
sudo apt install libcmph0t64cmph 2.0.2-r6
A minimal hash C library - utility application
sudo apk add cmphcmph-dev 2.0.2-r6
A minimal hash C library - utility application (development files)
sudo apk add cmph-devcmph-doc 2.0.2-r6
A minimal hash C library - utility application (documentation)
sudo apk add cmph-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.