Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 ldc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ldc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ldc

MacPorts ports tree · lang/ldc/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ldc

Alpine Linux edge package indexes · ldc · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ldc

Debian stable package indexes · ldc · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ldc

Fedora Rawhide package metadata · ldc · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ldc

nixpkgs package indexes · pkgs/by-name/ld/ldc/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ldc

Arch Linux sync databases · ldc · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ldc

openSUSE Tumbleweed package metadata · ldc · 来源: download.opensuse.org

概览

软件包摘要

Portable D programming language compiler

命令和别名

  • ldc-build-plugin
  • ldc-build-runtime
  • ldc-profdata
  • ldc-profgen
  • ldc-prune-cache
  • ldc2
  • ldmd2
  • timetrace2txt

历史

项目历史与用法

LDC is the LLVM-backed compiler for the D programming language, pairing the D frontend and runtime libraries with LLVM code generation and optimization.

项目历史

LDC emerged to give D programmers an LLVM-based alternative to the reference DMD compiler and GCC's GDC. The project README describes the compiler as using the official DMD frontend and LLVM as backend, with the ldc2 command as the main compiler driver.

The project evolved from early experimental D compiler work into a regular release train maintained by the ldc-developers organization. Its changelog shows the ongoing maintenance burden that matters for compilers: tracking D frontend/druntime/Phobos versions, LLVM versions, target ABI changes, platform support, and prebuilt binary packaging.

By the 1.x series, LDC had become a practical production compiler for D, not just a backend experiment. Its release notes repeatedly call out supported LLVM ranges, bundled LLVM versions for prebuilt packages, cross-compilation work, and platform fixes across Linux, macOS, Windows, Android, Alpine/musl, RISC-V, PowerPC, and other targets.

采用历史

LDC's adoption is tied to D users who want LLVM optimization, broader target support, link-time optimization, and packaging-friendly prebuilt compilers. Package-manager coverage across Homebrew, Debian, Ubuntu, Fedora-family systems, Alpine, Arch, Nix, Scoop, Chocolatey, MacPorts, and openSUSE-family systems reflects that it is one of the standard ways to install a D compiler.

The project also matters to downstream packagers because its behavior depends on matching D frontend/runtime versions to LLVM support windows. The changelog's repeated packaging notes, glibc baseline changes, installer changes, and bundled-runtime details are signals of a mature compiler package rather than a small standalone CLI.

使用方式

Users invoke ldc2 to compile D programs, use ldmd2 for DMD-compatible command-line behavior, and rely on helper tools such as ldc-build-runtime, ldc-build-plugin, ldc-profdata, ldc-profgen, and timetrace2txt for runtime building, plugin workflows, profiling, and build-time analysis.

The compiler is commonly selected when D code needs LLVM optimization, cross-compilation targets, sanitizer or profiling support, or integration with LLVM-adjacent workflows.

为什么软件包爱好者会关心

LDC is package-nerd significant because compiler packages sit at the junction of language ecosystems and system toolchains. It has to coordinate D language releases, LLVM ABI/API changes, C toolchains, platform linkers, bundled runtime libraries, and distro-specific packaging constraints.

For Homebrew and other package managers, LDC is also a dependency-shaped package: installing it is not just about one executable, but about shipping a coherent compiler, runtime, standard library, config files, and helper tools.

时间线

  • 2000s: LDC begins as an LLVM-based compiler path for the D language.
  • 2016: The 1.0 release line establishes LDC as a stable D compiler package.
  • 2023: LDC 1.33.0 documents semantic-analysis plugin support and adds ldc-build-plugin.
  • 2024: LDC 1.38.0 documents LLVM 18 support and Android TLS/runtime changes.
  • 2025: LDC 1.41.0 documents LLVM 20 support and Ubuntu 22.04-based Linux packages.
  • 2026-03-01: LDC 1.42.0 documents LLVM 21 support and D frontend/druntime/Phobos version 2.112.1+.

Related projects

  • Related projects include DMD, the reference D compiler whose frontend LDC tracks; GDC, the GCC-based D compiler; LLVM and Clang; and the D runtime and Phobos standard library.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:runtime,programming language

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ldc-build-plugincli全局可执行文件
ldc-build-runtimecli全局可执行文件
ldc-profdatacli全局可执行文件
ldc-profgencli全局可执行文件
ldc-prune-cachecli全局可执行文件
ldc2cli全局可执行文件
ldmd2cli全局可执行文件
timetrace2txtcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.42.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/ldc-developers/ldc

安装元数据

软件包元数据

软件包键brew:ldc
版本1.42.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ldc
主页https://wiki.dlang.org/LDC
仓库https://github.com/ldc-developers/ldc
上游文档https://github.com/ldc-developers/ldc#readme
许可证BSD-3-Clause
源码归档https://github.com/ldc-developers/ldc/releases/download/v1.42.0/ldc-1.42.0-src.tar.gz
依赖llvm@21
构建依赖cmake, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameldc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

ldc 1:1.40.0-5

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo apt install ldc
  • Section: devel
  • Architecture: amd64
  • 6 依赖
  • 2 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ldc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libphobos2-ldc-shared-dev 1:1.40.0-5

LLVM D Compiler - Standard and runtime libraries, imports

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: ldc
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libphobos2-ldc-shared-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libphobos2-ldc-shared110 1:1.40.0-5

LLVM D Compiler - Standard and runtime libraries

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared110
  • Section: libs
  • Architecture: amd64
  • Source Package: ldc
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libphobos2-ldc-shared110 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ldc

nix profile install nixpkgs#ldc
  • normalized package name match
  • 匹配方式:Ldc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ld/ldc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ldc 1:1.36.0-2ubuntu2

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo apt install ldc
  • Section: universe/devel
  • Architecture: amd64
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ldc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libphobos2-ldc-shared-dev 1:1.36.0-2ubuntu2

LLVM D Compiler - Standard and runtime libraries, imports

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: ldc
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libphobos2-ldc-shared-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libphobos2-ldc-shared106 1:1.36.0-2ubuntu2

LLVM D Compiler - Standard and runtime libraries

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared106
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: ldc
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libphobos2-ldc-shared106 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ldc 1.42.0-r0

The LLVM-based D Compiler

https://github.com/ldc-developers/ldc

sudo apk add ldc
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-bash-completion 1.42.0-r0

Bash completions for ldc

https://github.com/ldc-developers/ldc

sudo apk add ldc-bash-completion
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • normalized package name match
  • 匹配方式:Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-dbg 1.42.0-r0

The LLVM-based D Compiler (debug symbols)

https://github.com/ldc-developers/ldc

sudo apk add ldc-dbg
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 依赖
  • normalized package name match
  • 匹配方式:Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-runtime 1.42.0-r0

Dynamic runtime library for D code compiled with ldc-1.42.0

https://github.com/ldc-developers/ldc

sudo apk add ldc-runtime
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-runtime from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-static 1.42.0-r0

The LLVM-based D Compiler (static library)

https://github.com/ldc-developers/ldc

sudo apk add ldc-static
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • normalized package name match
  • 匹配方式:Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ldc 1.42.0-2.fc45

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo dnf install ldc
  • License: BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ldc
  • 14 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Ldc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ldc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ldc-libs 1.42.0-2.fc45

LLVM D Compiler libraries

https://github.com/ldc-developers/ldc

sudo dnf install ldc-libs
  • License: BSL-1.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ldc
  • 6 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Ldc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ldc-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ldc 3:1.42.0-1

A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2

https://github.com/ldc-developers/ldc

sudo pacman -S ldc
  • License: BSD-3-Clause AND BSL-1.0 AND Apache-2.0 WITH LLVM-exception
  • Architecture: x86_64
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ldc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ldc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ldc 1.40.1-1.3

The LLVM D Compiler

https://wiki.dlang.org/LDC

sudo zypper install ldc
  • License: Artistic-1.0 AND BSD-3-Clause
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: ldc
  • 8 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ldc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ldc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment