# 使用 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
- **版本:** 2.10.1
- **来源摘要:** Moscow ML
- **主页:** <https://mosml.org/>
- **仓库:** <https://github.com/kfl/mosml>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.10.1
## 项目历史与用法

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
