# mercury を Homebrew, apk, MacPorts, Nix, winget, zypper でインストール

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

## インストール

```sh
sudo av install brew:mercury
```

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

### macOS

- Homebrew (100%):

```sh
brew install mercury
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mercury
```

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

### Linux

- apk (92%):

```sh
sudo apk add mercury
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#mercury
```

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

- zypper (92%):

```sh
sudo zypper install lua-lmod
```

  証拠: openSUSE Tumbleweed package metadata: lua-lmod from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Alex313031.Mercury -e
```

  証拠: Windows Package Manager source index: Alex313031.Mercury from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:mercury
- **パッケージマネージャ:** Homebrew
- **バージョン:** 22.01.8
- **ソース概要:** Logic/functional programming language
- **ホームページ:** <https://mercurylang.org/>
- **最終更新:** 2026-07-23T16:36:10Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- c2init (エイリアス)
- canonical_grade (エイリアス)
- info_to_mdb (エイリアス)
- mcov (エイリアス)
- mdb (エイリアス)
- mdemangle (エイリアス)
- mdice (エイリアス)
- mdprof (エイリアス)
- mdprof_cgi (エイリアス)
- mdprof_create_feedback (エイリアス)
- mdprof_dump (エイリアス)
- mdprof_report_feedback (エイリアス)
- mdprof_test (エイリアス)
- mercury (エイリアス)
- mercury_compile (エイリアス)
- mercury_config (エイリアス)
- mercury_profile (エイリアス)
- mercury_update_interface (エイリアス)
- mfiltercc (エイリアス)
- mfilterjavac (エイリアス)
- mgnuc (エイリアス)
- mkfifo_using_mknod (エイリアス)
- mkinit (エイリアス)
- ml (エイリアス)
- mmake (エイリアス)
- mmc (エイリアス)
- mprof (エイリアス)
- mprof_merge_runs (エイリアス)
- mslice (エイリアス)
- mtags (エイリアス)
- mtc (エイリアス)
- mtc_diff (エイリアス)
- mtc_union (エイリアス)
- prepare_install_dir (エイリアス)
- vpath_find (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 22.01.8
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://formulae.brew.sh/formula/mercury>
- <https://mercurylang.org/about.html>
- <https://mercurylang.org/documentation/papers.html>
- <https://mercurylang.org/information/doc-latest/mercury_user_guide/index.html>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

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

- Nix - mercury: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/mercury/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - mercury - 22.01.8-r1: normalized package name match | Alpine Linux edge package indexes: mercury from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compiler for the Mercury language | https://www.mercurylang.org
- apk - mercury-doc - 22.01.8-r1: normalized package name match | Alpine Linux edge package indexes: mercury-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compiler for the Mercury language (documentation) | https://www.mercurylang.org
- apk - mercury-libs - 22.01.8-r1: normalized package name match | Alpine Linux edge package indexes: mercury-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Mercury shared library (libraries) | https://www.mercurylang.org
- MacPorts - mercury: normalized package name match | MacPorts ports tree: lang/mercury/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - Alex313031.Mercury: normalized package name match | Windows Package Manager source index: Alex313031.Mercury from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - ml: installed executable or alias match | MacPorts ports tree: math/ml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- zypper - lua-lmod - 8.7.55-4.5: installed executable or alias match | openSUSE Tumbleweed package metadata: lua-lmod from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Lua-based Environment Modules used in HPC | https://github.com/TACC/Lmod


## Combined YAML source

View the package source record on GitHub. [combined/mercury.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mercury.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
