macOS
brew install emscriptenlocal Homebrew formula metadata
sudo port install emscriptenMacPorts ports tree · lang/emscripten/Portfile · 来源: api.github.com
安装
brew install emscriptenlocal Homebrew formula metadata
sudo port install emscriptenMacPorts ports tree · lang/emscripten/Portfile · 来源: api.github.com
sudo apt install emscriptenDebian stable package indexes · emscripten · 来源: deb.debian.org
nix profile install nixpkgs#emscriptennixpkgs package indexes · emscripten · 来源: raw.githubusercontent.com
sudo pacman -S emscriptenArch Linux sync databases · emscripten · 来源: geo.mirror.pkgbuild.com
choco install emscriptenChocolatey community package catalog · emscripten · 来源: community.chocolatey.org
scoop install main/emscriptenScoop official bucket manifest trees · bucket/emscripten.json · 来源: api.github.com
概览
LLVM bytecode to JavaScript compiler
历史
Emscripten is the long-running LLVM-based toolchain that made C and C++ code practical to ship into JavaScript and then WebAssembly environments. Its README describes it as compiling C and C++ to WebAssembly using LLVM and Binaryen, with output that runs on the web, in Node.js, and in standalone wasm runtimes.
For package users, Emscripten is not just one compiler binary: it is a full porting toolchain with `emcc`, `em++`, build-system wrappers, archive tools, runtime helpers, ports, and a cache. Installing it from a package manager gives developers a local system toolchain, while the project itself still recommends the Emscripten SDK as the easiest way to get started.
The public GitHub repository dates to 2011, and the project grew around the idea that LLVM IR could be lowered into browser-executable output. As WebAssembly became the standard target, Emscripten's documented model shifted toward producing a wasm module plus JavaScript loader code, while still retaining browser, Node.js, and runtime integration layers.
The Emscripten README ties the project closely to LLVM, Binaryen, Clang, OpenGL, SDL2, and the broader portable-native-code ecosystem. Its license notes also reflect the project's LLVM relationship, including the later switch to the LLVM wasm backend.
Emscripten became important because it turned existing native codebases into web-deployable artifacts rather than forcing rewrites. The project documentation points to large graphical and application ports, including Unity WebGL and Google Earth, as examples of the kind of portable API support it targets.
Its command-line shape made it familiar to Unix package users: `emcc` is presented as something to run like `gcc` or `clang`, and companion tools such as `emcmake` and `emconfigure` let existing C/C++ build systems cross-compile with limited ceremony.
Typical use starts with compiling a C or C++ file through `emcc`, producing JavaScript plus a WebAssembly module, or generating an HTML harness for browser testing. Larger projects commonly enter through build wrappers such as `emcmake`, `emconfigure`, and `emmake`.
The toolchain matters beyond browsers because Emscripten documents output for Node.js, Deno, Bun, and wasm runtimes. That makes it a package-manager fixture for developers who need reproducible local builds of wasm artifacts from native code.
Emscripten is one of the canonical examples of a package that is both a compiler and a small ecosystem: it brings a sysroot, ports, compiler frontends, JS glue generation, cache behavior, and version-sensitive ABI expectations. Its changelog explicitly warns that ABI compatibility is not guaranteed across versions and that rebuilds may be needed after upgrades.
For maintainers, Emscripten is interesting because it sits at the crossing of LLVM release behavior, browser platform changes, WebAssembly proposals, and ordinary package-manager expectations. Keeping it packaged means tracking a fast-moving compiler stack while preserving the simple user promise of `emcc hello.c -o hello.js`.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.emscripten~/.emscripten$EM_CONFIG可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bootstrap | cli | 全局可执行文件 | |
em++ | cli | 全局可执行文件 | |
em-config | cli | 全局可执行文件 | |
emar | cli | 全局可执行文件 | |
embuilder | cli | 全局可执行文件 | |
emcc | cli | 全局可执行文件 | |
emcmake | cli | 全局可执行文件 | |
emconfigure | cli | 全局可执行文件 | |
emdwp | cli | 全局可执行文件 | |
emmake | cli | 全局可执行文件 | |
emnm | cli | 全局可执行文件 | |
empath-split | cli | 全局可执行文件 | |
emprofile | cli | 全局可执行文件 | |
emranlib | cli | 全局可执行文件 | |
emrun | cli | 全局可执行文件 | |
emscan-deps | cli | 全局可执行文件 | |
emscons | cli | 全局可执行文件 | |
emsize | cli | 全局可执行文件 | |
emstrip | cli | 全局可执行文件 | |
emsymbolizer | cli | 全局可执行文件 | |
wasm32-clang | cli | 全局可执行文件 | |
wasm32-clang++ | cli | 全局可执行文件 | |
wasm32-wasi-clang | cli | 全局可执行文件 | |
wasm32-wasi-clang++ | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/emscripten-core/emscripten
安装元数据
| 软件包键 | brew:emscripten |
|---|---|
| 版本 | 6.0.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/emscripten |
| 主页 | https://emscripten.org/ |
| 仓库 | https://github.com/emscripten-core/emscripten |
| 上游文档 | https://emscripten.org/docs |
| 许可证 | Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND (MIT OR NCSA) |
| 源码归档 | https://github.com/emscripten-core/emscripten/archive/refs/tags/6.0.3.tar.gz |
| 最后更新 | 2026-07-14T16:36:43Z |
| Pulse | updated |
| 依赖 | node, openjdk, python@3.14, yuicompressor |
| 构建依赖 | cmake |
| 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 | emscripten |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
emscripten 3.1.69+dfsg-3
LLVM-to-JavaScript Compiler
sudo apt install emscriptenemscripten-doc 3.1.69+dfsg-3
LLVM-to-JavaScript Compiler (documentation)
sudo apt install emscripten-docemscripten
nix profile install nixpkgs#emscriptenemscripten 3.1.6~dfsg-7
LLVM-to-JavaScript Compiler
sudo apt install emscriptenemscripten-doc 3.1.6~dfsg-7
LLVM-to-JavaScript Compiler
sudo apt install emscripten-docemscripten 6.0.0-1
Compile C and C++ into highly-optimizable JavaScript for the web
sudo pacman -S emscriptenemscripten
sudo port install emscriptenemscripten
choco install emscriptenmain/emscripten
scoop install main/emscriptenem
sudo port install emem
nix profile install nixpkgs#em来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.