`'GLIBC_2.39' not found` when running Codex 0.50 on Ubuntu 22.04

Resolved 💬 2 comments Opened Oct 29, 2025 by getaaron Closed Oct 29, 2025

What version of Codex is running?

0.50

What subscription do you have?

AzureAI API key

Which model were you using?

_No response_

What platform is your computer?

Linux 6.8.0-86-generic x86_64 x86_64

What issue are you seeing?

I was running codex 0.46.0 which was working great. I followed the instructions to replace the formula with the cask, and installed the cask.

<details>
<summary>Installation log</summary>

$ brew install --cask codex
==> Downloading https://github.com/openai/codex/releases/download/rust-v0.50.0/codex-x86_64-unknown-linux-gnu.tar.gz
Already downloaded: /home/asdf/.cache/Homebrew/downloads/2b9a6e77e249d5b9587ebb0ab89fc28167448d57f73d2922accb0a35457553b1--codex-x86_64-unknown-linux-gnu.tar.gz
==> Installing dependencies: pcre2, ripgrep
==> Fetching downloads for: pcre2 and ripgrep
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.47
Already downloaded: /home/asdf/.cache/Homebrew/downloads/43e006145d881575c409981c8f01b0da6e06eff7265402874591a1cb91e3531d--pcre2-10.47.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ripgrep/manifests/15.1.0
Already downloaded: /home/asdf/.cache/Homebrew/downloads/247ef7532e22477dada5de1e8f820294b9dc8944c416d04d28431befe8e5aef8--ripgrep-15.1.0.bottle_manifest.json
==> Fetching pcre2
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/blobs/sha256:6a80460c1a317becfa0cff0659100dfe6aacf0f7679043580c1bb6377b8fce77
Already downloaded: /home/asdf/.cache/Homebrew/downloads/c2067dfc4e1541c1b93e19126390b45d59e4b444d609c15104a1575408efa5aa--pcre2--10.47.x86_64_linux.bottle.tar.gz
==> Fetching ripgrep
==> Downloading https://ghcr.io/v2/homebrew/core/ripgrep/blobs/sha256:349bc55db5ad4b4e8935b889d44c745ae23605c1d57d6eb639dbd5c86d573a88
Already downloaded: /home/asdf/.cache/Homebrew/downloads/008bb5e39e4a26d6d15f8a046de9e6d09e8b106f3d8160448eba474ce43b971a--ripgrep--15.1.0.x86_64_linux.bottle.tar.gz
==> Installing pcre2
==> Pouring pcre2--10.47.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/pcre2/10.47: 248 files, 7.9MB
==> Installing ripgrep
==> Pouring ripgrep--15.1.0.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/ripgrep/15.1.0: 14 files, 24.8MB
==> Installing Cask codex
==> Linking Binary 'codex-x86_64-unknown-linux-gnu' to '/home/linuxbrew/.linuxbrew/bin/codex'
🍺  codex was successfully installed!

</details>

Now when I run codex I get:

$ codex
codex: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by codex)

Did you intentionally drop support for older versions of glibc? In general binaries built on older glibc run on newer glibc, but not the other way around.

I am not sure what you are building this on, but if you build on a newer system with glibc 2.39 it will run on 24.04+, and fail on 22.04 (my case).

0.46 was probably built with glibc 2.35 or earlier → this runs on 22.04 and 24.04.

What steps can reproduce the bug?

On an Ubuntu 22 machine, install codex via homebrew and try to run it.

What is the expected behavior?

Codex runs normally.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗