macOS
brew install mercurylocal Homebrew formula metadata
sudo port install mercuryMacPorts ports tree · lang/mercury/Portfile · 来源: api.github.com
安装
brew install mercurylocal Homebrew formula metadata
sudo port install mercuryMacPorts ports tree · lang/mercury/Portfile · 来源: api.github.com
sudo apk add mercuryAlpine Linux edge package indexes · mercury · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#mercurynixpkgs package indexes · pkgs/by-name/me/mercury/package.nix · 来源: api.github.com
sudo zypper install lua-lmodopenSUSE Tumbleweed package metadata · lua-lmod · 来源: download.opensuse.org
winget install --id Alex313031.Mercury -eWindows Package Manager source index · Alex313031.Mercury · 来源: cdn.winget.microsoft.com
概览
Logic/functional programming language
历史
Mercury is a pure logic programming language that grew out of the University of Melbourne logic-programming research community. The Mercury project describes the language as Prolog-like in syntax but different in semantics because of its purity and its static type, mode, determinism, and module systems. Early papers by Zoltan Somogyi, Fergus Henderson, and Thomas Conway documented the implementation in 1994 and presented Mercury as an efficient purely declarative logic language in 1995.
The compiler became a substantial part of the project identity: it is written in Mercury, was bootstrapped from Prolog systems, and compiles Mercury code through C as a portable assembler while using GNU C extensions when available for better code generation. The user guide exposes a full development toolchain around `mmc`, `mmake`, debugging, profiling, generated interface files, and multiple target-language grades.
In package-manager terms, the Homebrew package is a language runtime and compiler suite rather than a small single-command utility. It installs the compiler, build tools, debugger, profiler, and support commands used to compile and inspect Mercury programs. Its niche is close to Prolog and functional-language systems: users pick it when they want logic programming with stronger compile-time guarantees, determinism checking, and efficient native-code-oriented compilation.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
c2init | cli | 全局可执行文件 | |
canonical_grade | cli | 全局可执行文件 | |
info_to_mdb | cli | 全局可执行文件 | |
mcov | cli | 全局可执行文件 | |
mdb | cli | 全局可执行文件 | |
mdemangle | cli | 全局可执行文件 | |
mdice | cli | 全局可执行文件 | |
mdprof | cli | 全局可执行文件 | |
mdprof_cgi | cli | 全局可执行文件 | |
mdprof_create_feedback | cli | 全局可执行文件 | |
mdprof_dump | cli | 全局可执行文件 | |
mdprof_report_feedback | cli | 全局可执行文件 | |
mdprof_test | cli | 全局可执行文件 | |
mercury | cli | 全局可执行文件 | |
mercury_compile | cli | 全局可执行文件 | |
mercury_config | cli | 全局可执行文件 | |
mercury_profile | cli | 全局可执行文件 | |
mercury_update_interface | cli | 全局可执行文件 | |
mfiltercc | cli | 全局可执行文件 | |
mfilterjavac | cli | 全局可执行文件 | |
mgnuc | cli | 全局可执行文件 | |
mkfifo_using_mknod | cli | 全局可执行文件 | |
mkinit | cli | 全局可执行文件 | |
ml | cli | 全局可执行文件 | |
mmake | cli | 全局可执行文件 | |
mmc | cli | 全局可执行文件 | |
mprof | cli | 全局可执行文件 | |
mprof_merge_runs | cli | 全局可执行文件 | |
mslice | cli | 全局可执行文件 | |
mtags | cli | 全局可执行文件 | |
mtc | cli | 全局可执行文件 | |
mtc_diff | cli | 全局可执行文件 | |
mtc_union | cli | 全局可执行文件 | |
prepare_install_dir | cli | 全局可执行文件 | |
vpath_find | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:mercury |
|---|---|
| 版本 | 22.01.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mercury |
| 主页 | https://mercurylang.org/ |
| 仓库 | https://github.com/Mercury-Language/mercury |
| 上游文档 | https://mercurylang.org/documentation/documentation.html |
| 许可证 | GPL-2.0-only AND LGPL-2.0-only AND MIT |
| 源码归档 | https://dl.mercurylang.org/release/mercury-srcdist-22.01.8.tar.gz |
| 最后更新 | 2026-07-23T16:36:10Z |
| Pulse | updated |
| 依赖 | openjdk |
| macOS 提供的库 | libedit |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mercury |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mercury
nix profile install nixpkgs#mercurymercury 22.01.8-r1
Compiler for the Mercury language
sudo apk add mercurymercury-doc 22.01.8-r1
Compiler for the Mercury language (documentation)
sudo apk add mercury-docmercury-libs 22.01.8-r1
Mercury shared library (libraries)
sudo apk add mercury-libsmercury
sudo port install mercuryAlex313031.Mercury
winget install --id Alex313031.Mercury -eml
sudo port install mllua-lmod 8.7.55-4.3
Lua-based Environment Modules used in HPC
sudo zypper install lua-lmod来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.