# cling mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cling in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:cling
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install cling
```

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cling
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/cl/cling/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:cling
- **Paketmanager:** Homebrew
- **Version:** 1.3
- **Quellzusammenfassung:** C++ interpreter
- **Homepage:** <https://root.cern/cling/>
- **Repository:** <https://github.com/root-project/cling>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- cling (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.3
## Projektgeschichte und Nutzung

Cling is an interactive C++ interpreter built on Clang and LLVM. The official README describes it as a REPL that reuses Clang diagnostics, supports interactive C++ development, and can be used from the command line or as a Jupyter kernel.

### Projektgeschichte

Cling emerged from the ROOT high-energy physics ecosystem as the new interpreter for ROOT 6. The official README includes a peer-reviewed CHEP 2012 citation, 'Cling - The New Interactive Interpreter for ROOT 6', and the ROOT documentation presents Cling as ROOT's C++ interpreter.

### Adoptionsgeschichte

Cling's adoption is strongest through ROOT rather than as an isolated package. In package-manager culture, standalone formulae such as Homebrew and Nix expose it to users who want an interactive C++ REPL without installing or centering an entire ROOT workflow.

### Wie es verwendet wird

The README documents building Cling with the matching root-project LLVM branch, running cling with inline C++ snippets or an interactive prompt, using .help, and enabling a Jupyter kernel. The ROOT manual covers prompt commands and interactive C++ usage inside ROOT.

### Warum Paket-Nerds sich dafür interessieren

Cling is package-nerd significant because it turns a compiled language and a large compiler infrastructure into a packaged interactive runtime. It also illustrates the maintenance burden of packaging tools that track LLVM and Clang closely, which is why distribution recipes matter for users who just want a working C++ REPL.

### Zeitleiste

- 2012: CHEP publication describes Cling as the new interactive interpreter for ROOT 6.
- 2010s: Cling release tags progress from v0.4 through v1.x in the official repository tag list.
- 2020s: Official README documents standalone builds, LLVM/Clang integration, Jupyter support, and ROOT manual integration.
- 2026: Batch input lists Homebrew and Nix distribution.

### Related projects

- Cling is directly related to ROOT, Clang, LLVM, and Jupyter. It belongs near other interactive language runtimes and C++ exploration tools, but its official lineage is ROOT and LLVM/Clang rather than a general scripting-language implementation.

### Quellen

- <https://github.com/root-project/cling#readme>
- <https://root.cern/cling>
- <https://root.cern/manual/cling>
- <https://github.com/root-project/cling/blob/master/docs/ReleaseNotes.md>


## Sicherheitshinweise

generalized runtime or code generation signal.

- **Geiger-Risiko:** yellow / mittel
- generalized runtime or code generation signal

## Andere Paketmanager-Einträge

- Nix - cling: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/cling/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## Quellen

- 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
