🍺 BREW Explorer

← all formulae

glibc

brew install glibc v2.39 GPL-2.0-or-later AND LGPL-2.1-or-later keg-only

GNU C standard library providing POSIX system calls and C runtime for Linux systems.

Why you might care

glibc is keg-only because it shadows the system C library; use it only when you need a specific glibc version for compilation or runtime (e.g., cross-compilation, testing against multiple glibc versions, or when system glibc is too old). Most Homebrew users never install this directly—it's primarily a build dependency.

Categories

Alternatives

musl uclibc
15.6k
30-day installs · #274
35.4k
90-day · #349
144.0k
365-day · #340

Runtime dependencies

Links

Caveats

The Homebrew's Glibc has been installed with the following executables:
  $HOMEBREW_PREFIX/opt/glibc/bin/ldd
  $HOMEBREW_PREFIX/opt/glibc/bin/ld.so
  $HOMEBREW_PREFIX/opt/glibc/sbin/ldconfig

By default, Homebrew's linker will not search for the system's libraries. If you
want Homebrew to do so, run:

  cp "$HOMEBREW_PREFIX/etc/ld.so.conf.d/99-system-ld.so.conf.example" "$HOMEBREW_PREFIX/etc/ld.so.conf.d/99-system-ld.so.conf"
  brew postinstall glibc

to append the system libraries to Homebrew's ld search paths. This is risky and
**highly not recommended**, because it may cause linkage to Homebrew libraries
mixed with system libraries.

Keg-only reason

it can shadow system glibc if linked

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "glibc@2.39"
  ],
  "alternatives": [
    "musl",
    "uclibc"
  ],
  "build_dependencies": [],
  "categories": [
    "library",
    "language-runtime"
  ],
  "caveats": "The Homebrew\u0027s Glibc has been installed with the following executables:\n  $HOMEBREW_PREFIX/opt/glibc/bin/ldd\n  $HOMEBREW_PREFIX/opt/glibc/bin/ld.so\n  $HOMEBREW_PREFIX/opt/glibc/sbin/ldconfig\n\nBy default, Homebrew\u0027s linker will not search for the system\u0027s libraries. If you\nwant Homebrew to do so, run:\n\n  cp \"$HOMEBREW_PREFIX/etc/ld.so.conf.d/99-system-ld.so.conf.example\" \"$HOMEBREW_PREFIX/etc/ld.so.conf.d/99-system-ld.so.conf\"\n  brew postinstall glibc\n\nto append the system libraries to Homebrew\u0027s ld search paths. This is risky and\n**highly not recommended**, because it may cause linkage to Homebrew libraries\nmixed with system libraries.\n",
  "conflicts_with": [],
  "dependencies": [
    "linux-headers@6.8"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "GNU C Library",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:10+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "glibc",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.gnu.org/software/libc/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "The GNU C Library\n- GNU Project - Free Software Foundation",
  "installs_30d": 15602,
  "installs_365d": 144004,
  "installs_90d": 35360,
  "keg_only": 1,
  "keg_only_reason": "it can shadow system glibc if linked",
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-or-later AND LGPL-2.1-or-later",
  "llm_generated_at": "2026-06-20T23:43:50+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "glibc",
  "oldnames": [],
  "one_liner": "GNU C standard library providing POSIX system calls and C runtime for Linux systems.",
  "optional_dependencies": [],
  "rank_30d": 274,
  "rank_365d": 340,
  "rank_90d": 349,
  "raw_hash": "0c40936264a529ca",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/glibc.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "2.39",
  "versioned_formulae": [
    "glibc@2.17",
    "glibc@2.13"
  ],
  "why_use_this": "glibc is keg-only because it shadows the system C library; use it only when you need a specific glibc version for compilation or runtime (e.g., cross-compilation, testing against multiple glibc versions, or when system glibc is too old). Most Homebrew users never install this directly\u2014it\u0027s primarily a build dependency."
}