# Install libbi with Homebrew

Bayesian state-space modelling on parallel computer hardware. Version 1.4.5 via Homebrew; verified 2026-05-28.

## Install

```sh
sudo av install brew:libbi
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libbi
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:libbi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libbi>
- **Version:** 1.4.5
- **Source summary:** Bayesian state-space modelling on parallel computer hardware
- **Homepage:** <https://libbi.org/>
- **Repository:** <https://github.com/lawmurray/LibBi>
- **Upstream docs:** <https://libbi.org/docs/LibBi-Manual.pdf>
- **License:** GPL-2.0-only
- **Source archive:** <https://github.com/lawmurray/LibBi/archive/refs/tags/1.4.5.tar.gz>
- **Last updated:** 2026-05-28T17:57:59+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- bi (cli)
- libbi (cli)
- bi (alias)
- libbi (alias)

## Dependencies

- automake
- boost
- gsl
- netcdf
- qrupdate

## Uses from macOS

- perl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.4.5
- Package-manager updated: 2026-05-28
- Local data: ok
- Upstream repository: https://github.com/lawmurray/LibBi
- Upstream latest detected: 1.4.5 (current)
## Project history and usage

LibBi is Lawrence M. Murray's package for Bayesian state-space modelling and inference on high-performance hardware. It combines a C++ template library with a Perl parser and compiler for a domain-specific modelling language.

### Project history

LibBi was publicly announced on 2013-06-07, alongside Murray's 2013 paper on Bayesian state-space modelling on high-performance hardware. The paper presents LibBi as software that parses a model language, optimizes it, generates C++ code, compiles it, and runs inference methods on CPU, GPU, and distributed-memory platforms.

The project site frames LibBi around sequential Monte Carlo methods, including particle filtering, PMCMC, SMC^2, the extended Kalman filter, and parameter optimization routines. Its design reflects a scientific-computing period when CUDA, OpenMP, MPI, NetCDF, and HDF5 were expected to be stitched together by domain-specific tooling.

### Adoption history

LibBi found a niche in statistical and scientific modelling rather than general-purpose application development. The project site records an RBi package announcement on 2016-10-19 for using LibBi from R, and a 2016-11-14 post announcing Homebrew and Linuxbrew installation for `libbi`.

### How it is used

Users write state-space models in LibBi's modelling language, then run the `libbi` or `bi` tools to perform inference and process NetCDF/HDF5-backed input and output. The package is aimed at researchers who want particle methods and hardware parallelism without hand-writing the full generated C++ implementation.

### Why package nerds care

LibBi is a good example of a package-manager formula preserving a research software stack: C++, Perl, CUDA-era assumptions, NetCDF/HDF5-style data, and a custom DSL all bundled as a command-line tool. It is niche, but interesting because the package is the executable surface of an academic modelling system.

### Timeline

- 2013: Initial release of LibBi is announced on 2013-06-07.
- 2013: Introductory LibBi paper is listed by the project for citation.
- 2016: RBi interface for R is announced on 2016-10-19.
- 2016: Homebrew and Linuxbrew installation is announced on 2016-11-14.
- 2019: Project news lists LibBi 1.4.5 on 2019-07-08.

### Related projects

- RBi, R, MATLAB, GNU Octave, Julia, CUDA, OpenMP, MPI, NetCDF, HDF5, and sequential Monte Carlo research code are the most relevant neighbors.

### Sources

- <https://github.com/lawmurray/LibBi>
- <https://libbi.org/>
- <https://libbi.org/2013/06/07/LibBi-Released>
- <https://libbi.org/2016/10/19/LibBi-package-for-R>
- <https://libbi.org/2016/11/14/Easily-install-LibBi-from-Homebrew>
- <https://libbi.org/documentation>
- <https://libbi.org/getting-started>
- <https://libbi.org/papers>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libbi
- **Version Scheme:** 0
- **Revision:** 6
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Runtime dependency declared by Homebrew.
- [gsl](https://www.automicvault.com/pkg/brew/gsl/) - Runtime dependency declared by Homebrew.
- [netcdf](https://www.automicvault.com/pkg/brew/netcdf/) - Runtime dependency declared by Homebrew.
- [flexiblas](https://www.automicvault.com/pkg/brew/flexiblas/) - Shares av.db curated category or tags: cli, hpc, library, science.
- [otf2](https://www.automicvault.com/pkg/brew/otf2/) - Shares av.db curated category or tags: cli, hpc, library, science.
- [pnetcdf](https://www.automicvault.com/pkg/brew/pnetcdf/) - Shares av.db curated category or tags: cli, hpc, library, science.
- [btllib](https://www.automicvault.com/pkg/brew/btllib/) - Shares av.db curated category or tags: cli, library, science.
- [clhep](https://www.automicvault.com/pkg/brew/clhep/) - Shares av.db curated category or tags: cli, library, science.
- [cp2k](https://www.automicvault.com/pkg/brew/cp2k/) - Shares av.db curated category or tags: cli, hpc, science.
- [cubelib](https://www.automicvault.com/pkg/brew/cubelib/) - Shares av.db curated category or tags: cli, hpc, science.
- [flann](https://www.automicvault.com/pkg/brew/flann/) - Shares av.db curated category or tags: cli, library, science.
- [mrbayes](https://www.automicvault.com/pkg/brew/mrbayes/) - Local package facts share a topical domain. Shared terms: bayesian, bayesian-inference, cli, inference, models.
- [shamrock](https://www.automicvault.com/pkg/brew/shamrock/) - Local package facts share a topical domain. Shared terms: boost, cli, hpc, science.

## Combined YAML source

View the package source record on GitHub. [combined/libbi.yml](https://github.com/automic-vault/db/blob/main/combined/libbi.yml)


## Sources

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