# 使用 Homebrew, MacPorts, Nix 安装 mosml

查看 mosml 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mosml
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mosml
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mosml
```

  证据: MacPorts ports tree: lang/mosml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mosml
```

  证据: nixpkgs package indexes: pkgs/by-name/mo/mosml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mosml
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mosml>
- **版本:** 2.10.1
- **来源摘要:** Moscow ML
- **主页:** <https://mosml.org/>
- **仓库:** <https://github.com/kfl/mosml>
- **上游文档:** <https://mosml.org/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/kfl/mosml/archive/refs/tags/ver-2.10.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- camlrunm (cli)
- mosml (cli)
- mosmlc (cli)
- mosmllex (cli)
- mosmlyac (cli)
- camlrunm (别名)
- mosml (别名)
- mosmlc (别名)
- mosmllex (别名)
- mosmlyac (别名)

## 依赖

- gmp

## 安装行为

- 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-08-04
- 管理器版本: 2.10.1
- 本地数据: OK
- 上游仓库: https://github.com/kfl/mosml
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Moscow ML is a lightweight implementation of Standard ML. Its project history credits Sergei Romanenko at the Keldysh Institute of Applied Mathematics, Claudio Russo, Niels Kokholm, Ken Friis Larsen, and Peter Sestoft, and notes that it uses the runtime system and many ideas from Xavier Leroy and Damien Doligez's Caml Light implementation.

### 项目历史

The Moscow ML manual describes version 2.10 as implementing SML as revised in the 1997 Definition, including the SML Modules language, some extensions, much of the SML Basis Library, separate compilation, and generation of standalone executables. The manual also highlights the Moscow ML Modules language, with features such as higher-order functors and other extensions while preserving compatibility goals for SML programs.

### 使用方式

Its adoption niche is language education, research, and maintenance of older SML code that benefits from a small interactive system and bytecode compiler. In Homebrew and other package managers, mosml provides the classic Moscow ML toolchain rather than a general-purpose modern ML ecosystem.

### 来源

- <https://formulae.brew.sh/formula/mosml>
- <https://github.com/kfl/mosml>
- <https://mosml.org/>
- <https://mosml.org/manual.pdf>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Nix - mosml: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mosml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mosml: normalized package name match | MacPorts ports tree: lang/mosml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Shares pkgdb curated category or tags: cli, compiler, interpreter, language-runtime, programming-language.
- [algol68g](https://pkg.so/zh-hans/brew/algol68g/) - Shares pkgdb curated category or tags: cli, compiler, interpreter, language-runtime, programming-language.
- [polyml](https://pkg.so/zh-hans/brew/polyml/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language, standard-ml.
- [ruby](https://pkg.so/zh-hans/brew/ruby/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [kotlin](https://pkg.so/zh-hans/brew/kotlin/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [nim](https://pkg.so/zh-hans/brew/nim/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [scala](https://pkg.so/zh-hans/brew/scala/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [mlkit](https://pkg.so/zh-hans/brew/mlkit/) - Local package facts share a topical domain. Shared terms: cli, compiler, gmp, language, language-runtime.
- [arturo](https://pkg.so/zh-hans/brew/arturo/) - Local package facts share a topical domain. Shared terms: cli, gmp, interpreter, language, language-runtime.

## Combined YAML source

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


## 来源

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