CocoaEngineering
FORMULAv2.39

glibc for macOS

GNU C Library

Installation on macOS (Apple Silicon & Intel)

brew install glibc

Package Metadata

Identifierglibc
Current Version2.39
Tap Repositoryhomebrew/core
LicenseGPL-2.0-or-later AND LGPL-2.1-or-later
Upstream Homepagehttps://www.gnu.org/software/libc/
Last Verified2026-11-26T14:43:31Z

Runtime Dependencies (1)

linux-headers@6.8

Engineering 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.
Browse macOS Packages A–Z