macOS
brew install ocaml@4local Homebrew formula metadata
sudo port install ocamlMacPorts ports tree · lang/ocaml/Portfile · 来源: api.github.com
安装
brew install ocaml@4local Homebrew formula metadata
sudo port install ocamlMacPorts ports tree · lang/ocaml/Portfile · 来源: api.github.com
sudo apk add ocamlAlpine Linux edge package indexes · ocaml · 来源: dl-cdn.alpinelinux.org
sudo dnf install ocamlFedora Rawhide package metadata · ocaml · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ocamlnixpkgs package indexes · ocaml · 来源: raw.githubusercontent.com
sudo pacman -S ocamlArch Linux sync databases · ocaml · 来源: geo.mirror.pkgbuild.com
sudo zypper install ocamlopenSUSE Tumbleweed package metadata · ocaml · 来源: download.opensuse.org
概览
General purpose programming language in the ML family
历史
ocaml@4 packages the OCaml 4 compiler line separately from the main ocaml formula. It exists for projects and dependency graphs that still need the OCaml 4 runtime, compiler-libs AST, PPX compatibility, or build behavior rather than the OCaml 5 runtime model.
OCaml 4 began as the post-Objective Caml line that added features such as GADTs and first-class modules in 4.0. The 4.x series became the compatibility baseline for a large portion of the opam ecosystem across the 2010s and early 2020s, including packages whose PPX rewriters or compiler-libs dependencies track specific OCaml AST versions.
The 4.14 branch became the final OCaml 4 branch. OCaml.org release notes describe 4.14 as the last version of OCaml 4 and a long-term support branch for the transition to OCaml 5; OCaml 4.14.4 was released on 2026-06-15 with safe bug fixes and security fixes cherry-picked from OCaml 5.
The separate Homebrew formula reflects the same compatibility pressure seen in opam switches: developers may need a compiler line older than the default package to build older projects, reproduce releases, or support dependencies not yet migrated to OCaml 5.
Users install ocaml@4 when a project specifies OCaml 4.14 or an older 4.x-compatible dependency set. The package exposes the standard OCaml compiler commands, including ocaml, ocamlc, ocamlopt, ocamldep, ocamldoc, ocamllex, ocamlyacc, ocamlobjinfo, and runtime utilities.
Versioned compiler formulae are important for OCaml because compiler releases affect ABI, compiler-libs APIs, PPX ASTs, and package solver outcomes. ocaml@4 is a compact example of a package manager preserving a language ecosystem's old compiler branch while the main formula follows OCaml 5.
安全态势
没有找到 ocaml@4 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ocamlcp.byte | cli | 全局可执行文件 | |
ocamlcp.opt | cli | 全局可执行文件 | |
ocamlmklib.byte | cli | 全局可执行文件 | |
ocamlmklib.opt | cli | 全局可执行文件 | |
ocamlmktop.byte | cli | 全局可执行文件 | |
ocamlmktop.opt | cli | 全局可执行文件 | |
ocamloptp.byte | cli | 全局可执行文件 | |
ocamloptp.opt | cli | 全局可执行文件 | |
ocamlprof.byte | cli | 全局可执行文件 | |
ocamlprof.opt | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:ocaml@4 |
|---|---|
| 版本 | 4.14.4 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ocaml@4 |
| 主页 | https://ocaml.org/ |
| 仓库 | https://github.com/ocaml/ocaml |
| 上游文档 | https://ocaml.org/docs |
| 许可证 | LGPL-2.1-only WITH OCaml-LGPL-linking-exception |
| 源码归档 | https://caml.inria.fr/pub/distrib/ocaml-4.14/ocaml-4.14.4.tar.xz |
| 最后更新 | 2026-06-19T12:32:40-07:00 |
| Pulse | updated |
| 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 | ocaml@4 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libcompiler-libs-ocaml-dev 5.3.0-3
OCaml compiler library (development files)
sudo apt install libcompiler-libs-ocaml-devlibstdlib-ocaml 5.3.0-3
OCaml standard library (runtime files)
sudo apt install libstdlib-ocamllibstdlib-ocaml-dev 5.3.0-3
OCaml standard library (development files)
sudo apt install libstdlib-ocaml-devocaml 5.3.0-3
ML language implementation with a class-based object system
sudo apt install ocamlocaml-base 5.3.0-3
Runtime system for OCaml bytecode executables
sudo apt install ocaml-baseocaml-base-nox 5.3.0-3
transitional package for ocaml-base
sudo apt install ocaml-base-noxocaml-compiler-libs 5.3.0-3
transitional package for libcompiler-libs-ocaml-dev
sudo apt install ocaml-compiler-libsocaml-interp 5.3.0-3
OCaml interactive interpreter and standard libraries
sudo apt install ocaml-interpocaml-man 5.3.0-3
OCaml interpreter and standard libraries (lib manpages)
sudo apt install ocaml-manocaml-nox 5.3.0-3
transitional package for ocaml
sudo apt install ocaml-noxocaml-source 5.3.0-3
Sources for Objective Caml
sudo apt install ocaml-sourceocaml
nix profile install nixpkgs#ocamllibcompiler-libs-ocaml-dev 4.14.1-1ubuntu1
OCaml compiler library (development files)
sudo apt install libcompiler-libs-ocaml-devlibstdlib-ocaml 4.14.1-1ubuntu1
OCaml standard library (runtime files)
sudo apt install libstdlib-ocamllibstdlib-ocaml-dev 4.14.1-1ubuntu1
OCaml standard library (development files)
sudo apt install libstdlib-ocaml-devocaml 4.14.1-1ubuntu1
ML language implementation with a class-based object system
sudo apt install ocaml来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.