glibc
brew install glibcAlso known as: glibc@2.39
GNU C Library
https://www.gnu.org/software/libc/
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Development: Pull requests
Formula JSON API: /api/formula/glibc.json
Formula code: glibc.rb on GitHub
Bottle (binary package) installation support provided for:
| Linux | ARM64 | ✅ |
|---|---|---|
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.39 |
Other versions:
| glibc@2.17 | 2.17 | GNU C Library |
| glibc@2.13 | 2.13 | GNU C Library |
Revision: 1
Keg-only because it can shadow system glibc if linked.
Depends on:
| linux-headers@6.8 | 6.8.12 | Header files of the Linux kernel |
Requires: Brewedglibcnotolder, Linux, Linuxkernel
Binaries:
gencat,
getconf,
getent,
iconv,
iconvconfig,
ld.so,
ldconfig,
ldd,
locale,
localedef,
makedb,
mtrace,
nscd,
pcprofiledump,
pldd,
sln,
sotruss,
sprof,
tzselect,
xtrace,
zdump,
zic
| 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. |
Homebrew ships patches for: CVE-2024-2961, CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602, CVE-2025-0395, CVE-2025-15281, CVE-2025-5702, CVE-2025-8058, CVE-2026-0861, CVE-2026-0915, CVE-2026-4046, CVE-2026-4437, CVE-2026-4438, CVE-2026-5435, CVE-2026-5450, CVE-2026-5928, CVE-2026-6238.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 30,112 | 96,015 | 190,155 |
| Installs on Request | 461 | 1,494 | 4,488 |
| Build Errors | 31 |