🍺 BREW Explorer

← all formulae

bc-gh

brew install bc-gh v7.0.3 BSD-2-Clause keg-only

Implementation of Unix dc and POSIX bc with GNU and BSD extensions

11
30-day installs · #8258
21
90-day · #9555
45
365-day · #11375
245
★ GitHub stars · updated 3mo ago

Build dependencies

GitHub topics

bc dc posix

Links

Keg-only reason

:provided_by_macos

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [
    "bc"
  ],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Implementation of Unix dc and POSIX bc with GNU and BSD extensions",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:48+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "bc-gh",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-05-25T20:29:41Z",
  "github_readme_excerpt": "# `bc`\n\n***WARNING: This project has moved back to GitHub temporarily; self-hosted Git\nforges are not working for me, so I am trying to replace them.***\n\nThis is an implementation of the [POSIX `bc` calculator][12] that implements\n[GNU `bc`][1] extensions, as well as the period (`.`) extension for the BSD\nflavor of `bc`.\n\nFor more information, see this `bc`\u0027s full manual.\n\nThis `bc` also includes an implementation of `dc` in the same binary, accessible\nvia a symbolic link, which implements all FreeBSD and GNU extensions. (If a\nstandalone `dc` binary is desired, `bc` can be copied and renamed to `dc`.) The\n`!` command is omitted; I believe this poses security concerns and that such\nfunctionality is unnecessary.\n\nFor more information, see the `dc`\u0027s full manual.\n\nThis `bc` also provides `bc`\u0027s math as a library with C bindings, called `bcl`.\n\nFor more information, see the full manual for `bcl`.\n\n## License\n\nThis `bc` is Free and Open Source Software (FOSS). It is offered under the BSD\n2-clause License. Full license text may be found in the [`LICENSE.md`][4] file.\n\n## Prerequisites\n\nThis `bc` only requires either:\n\n1.\tWindows 10 or later, or\n2.\tA C99-compatible compiler and a (mostly) POSIX 2008-compatible system with\n\tthe XSI (X/Open System Interfaces) option group.\n\nSince POSIX 2008 with XSI requires the existence of a C99 compiler as `c99`, any\nPOSIX and XSI-compatible system will have everything needed.\n\nPOSIX-compatible systems that are known to work:\n\n* Linux\n* FreeBSD\n* OpenBSD\n* NetBSD\n* macOS\n* Solaris* (as long as the Solaris version supports POSIX 2008)\n* AIX\n* HP-UX* (except for history)\n\nIn addition, there is compatibility code to make this `bc` work on Windows.\n\nPlease submit bug reports if this `bc` does not build out of the box on any\nsystem.\n\n## Build\n\nThis `bc` should build unmodified on any POSIX-compliant system or on Windows\nstarting with Windows 10 (though earlier versions may work).\n\nFor more complex build requirements than the ones below, see th",
  "github_repo": "gavinhoward/bc",
  "github_stars": 245,
  "github_topics": [
    "bc",
    "dc",
    "posix"
  ],
  "homepage": "https://github.com/gavinhoward/bc",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 11,
  "installs_365d": 45,
  "installs_90d": 21,
  "keg_only": 1,
  "keg_only_reason": ":provided_by_macos",
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-2-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "bc-gh",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 8258,
  "rank_365d": 11375,
  "rank_90d": 9555,
  "raw_hash": "b3ca026b58d9a299",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/bc-gh.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "libedit"
  ],
  "version_head": "HEAD",
  "version_stable": "7.0.3",
  "versioned_formulae": [],
  "why_use_this": null
}