macOS
brew install clnlocal Homebrew formula metadata
sudo port install clnMacPorts ports tree · math/cln/Portfile · source: api.github.com
brew
Class Library for Numbers. Version 1.3.7 via Homebrew; verified from local package data.
install
brew install clnlocal Homebrew formula metadata
sudo port install clnMacPorts ports tree · math/cln/Portfile · source: api.github.com
sudo apk add clnAlpine Linux edge package indexes · cln · source: dl-cdn.alpinelinux.org
sudo apt install libcln-devDebian stable package indexes · libcln-dev · source: deb.debian.org
sudo dnf install clnFedora Rawhide package metadata · cln · source: dl.fedoraproject.org
nix profile install nixpkgs#clnnixpkgs package indexes · pkgs/by-name/cl/cln/package.nix · source: api.github.com
sudo pacman -S clnArch Linux sync databases · cln · source: geo.mirror.pkgbuild.com
sudo zypper install clnopenSUSE Tumbleweed package metadata · cln · source: download.opensuse.org
winget install --id EarendilWorks.pi -eWindows Package Manager source index · EarendilWorks.pi · source: cdn.winget.microsoft.com
overview
Class Library for Numbers
history
CLN, the Class Library for Numbers, is a C++ library for arbitrary-precision integers, rationals, floats, complex numbers, modular integers, and univariate polynomials.
CLN was written by Bruno Haible and is maintained by Richard B. Kreckel. The manual copyright history reaches back to Haible's 1988 work, and the official NEWS file records public 1.0-era releases beginning in January 1999.
The library was designed around efficient numeric computation in C++: immediate small numbers, garbage collection, assembly kernels on selected CPUs, optional GMP low-level routines, Karatsuba multiplication, very-large-number algorithms, and binary splitting.
CLN is closely associated with GiNaC, whose website lists CLN as related software and whose symbolic-computation focus explains why an arbitrary-precision numeric substrate mattered. CLN's own manual notes that its numeric subtypes match Common Lisp number types, so CLN can serve Common Lisp implementations as well as C++ mathematical software.
The official CLN page points users to Debian, Fedora, openSUSE, and other distribution packages, while the batch input records packaging across Alpine, Homebrew, Debian/Ubuntu as `libcln-dev`, Fedora, MacPorts, Nix, Arch, Winget, and openSUSE.
Developers link CLN into C++ programs that need arbitrary-precision numeric types with algebraic operator syntax. The manual documents building with a C++11 compiler, optional GMP support, namespace `cln`, and integration hooks for memory allocation and exceptions.
The Homebrew package exposes the sample `pi` executable, but CLN's primary value is as a development library rather than an end-user CLI.
CLN matters to package maintainers because it is a compiled C++ numeric library with ABI, compiler, architecture, and GMP concerns. The NEWS history repeatedly calls out portability fixes for CPU architectures, GCC versions, MinGW, ARM, AArch64, MIPS64, RISC-V, LoongArch, and cross-compilation.
Its 1.1.0 move into namespace `cln`, separate headers, and dependence on installed GMP version 3 or newer are classic downstream packaging events: they changed include paths, source compatibility, and dependency expectations.
security posture
No matching local secret-handling manifest was found for cln. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pi | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:cln |
|---|---|
| Version | 1.3.7 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cln |
| Homepage | https://www.ginac.de/CLN/ |
| Repository | https://codeberg.org/ginac/cln |
| Upstream docs | https://www.ginac.de/CLN/cln.html |
| License | GPL-2.0-or-later |
| Source archive | https://www.ginac.de/CLN/cln-1.3.7.tar.bz2 |
| Dependencies | gmp |
| Bottle | available (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cln |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libcln-dev 1.3.7-1+b1
Development library for Class Library for Numbers (c++)
sudo apt install libcln-devlibcln6 1.3.7-1+b1
Class Library for Numbers (C++)
sudo apt install libcln6pi 1.3.7-1+b1
Compute Archimedes' constant Pi to arbitrary precision
sudo apt install picln
nix profile install nixpkgs#clnlibcln-dev 1.3.7-1
Development library for Class Library for Numbers (c++)
sudo apt install libcln-devlibcln6 1.3.7-1
Class Library for Numbers (C++)
sudo apt install libcln6pi 1.3.7-1
Compute Archimedes' constant Pi to arbitrary precision
sudo apt install picln 1.3.7-r2
C++ class library for numbers
sudo apk add clncln-dev 1.3.7-r2
C++ class library for numbers (development files)
sudo apk add cln-devcln-doc 1.3.7-r2
C++ class library for numbers (documentation)
sudo apk add cln-doccln 1.3.6-10.fc44
Class Library for Numbers
sudo dnf install clncln-devel 1.3.6-10.fc44
Development files for programs using the CLN library
sudo dnf install cln-develcln 1.3.7-3
Class library for numbers
sudo pacman -S clncln 1.3.7-1.7
Class Library for Numbers (C++)
sudo zypper install clncln-devel 1.3.7-1.7
Class Library for Numbers (C++)
sudo zypper install cln-develcln
sudo port install clnsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.