macOS
brew install mercurylocal Homebrew formula metadata
sudo port install mercuryMacPorts ports tree · lang/mercury/Portfile · source: api.github.com
brew
Logic/functional programming language. Version 22.01.8 via Homebrew; verified from local package data.
install
brew install mercurylocal Homebrew formula metadata
sudo port install mercuryMacPorts ports tree · lang/mercury/Portfile · source: api.github.com
sudo apk add mercuryAlpine Linux edge package indexes · mercury · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#mercurynixpkgs package indexes · pkgs/by-name/me/mercury/package.nix · source: api.github.com
sudo zypper install lua-lmodopenSUSE Tumbleweed package metadata · lua-lmod · source: download.opensuse.org
winget install --id Alex313031.Mercury -eWindows Package Manager source index · Alex313031.Mercury · source: cdn.winget.microsoft.com
overview
Logic/functional programming language
history
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.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
c2init | cli | global executable | |
canonical_grade | cli | global executable | |
info_to_mdb | cli | global executable | |
mcov | cli | global executable | |
mdb | cli | global executable | |
mdemangle | cli | global executable | |
mdice | cli | global executable | |
mdprof | cli | global executable | |
mdprof_cgi | cli | global executable | |
mdprof_create_feedback | cli | global executable | |
mdprof_dump | cli | global executable | |
mdprof_report_feedback | cli | global executable | |
mdprof_test | cli | global executable | |
mercury | cli | global executable | |
mercury_compile | cli | global executable | |
mercury_config | cli | global executable | |
mercury_profile | cli | global executable | |
mercury_update_interface | cli | global executable | |
mfiltercc | cli | global executable | |
mfilterjavac | cli | global executable | |
mgnuc | cli | global executable | |
mkfifo_using_mknod | cli | global executable | |
mkinit | cli | global executable | |
ml | cli | global executable | |
mmake | cli | global executable | |
mmc | cli | global executable | |
mprof | cli | global executable | |
mprof_merge_runs | cli | global executable | |
mslice | cli | global executable | |
mtags | cli | global executable | |
mtc | cli | global executable | |
mtc_diff | cli | global executable | |
mtc_union | cli | global executable | |
prepare_install_dir | cli | global executable | |
vpath_find | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:mercury |
|---|---|
| Version | 22.01.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mercury |
| Homepage | https://mercurylang.org/ |
| Repository | https://github.com/Mercury-Language/mercury |
| Upstream docs | https://mercurylang.org/documentation/documentation.html |
| License | GPL-2.0-only AND LGPL-2.0-only AND MIT |
| Source archive | https://dl.mercurylang.org/release/mercury-srcdist-22.01.8.tar.gz |
| Dependencies | openjdk |
| Uses from macOS | libedit |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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-lmodsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.