codex-rs does not run on Ubuntu 20.04, requires libssl3

Resolved 💬 3 comments Opened Jun 4, 2025 by rgov Closed Oct 16, 2025
💡 Likely answer: A maintainer (oai-ragona, contributor) responded on this thread — see the highlighted reply below.

Codex says that it supports Ubuntu 20.04+ but the codex-rs binaries require libssl3, which is not available in the apt repositories.

$ codex
codex: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

$ apt search libssl
libssl1.1/focal-updates,focal-security,now 1.1.1f-1ubuntu2.24 arm64 [installed,automatic]
  Secure Sockets Layer toolkit - shared libraries

codex-cli does work under Node 22 from an external apt repository.

View original on GitHub ↗

3 Comments

oai-ragona contributor · 1 year ago

Confirmed the pre-built bins are broken on 20.04. Latest dotslash:

root@9b3577e33524:/tmp# ./codex
./codex: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

Installs fine from source though:

root@9b3577e33524:~/codex# cargo install --path codex-rs/tui/
  Installing codex-tui v0.0.0 (/root/codex/codex-rs/tui)
    Updating crates.io index
     Locking 418 packages to latest compatible versions
      Adding base64 v0.21.7 (available: v0.22.1)
      Adding crossterm v0.28.1 (available: v0.29.0)
      Adding tree-sitter-bash v0.23.3 (available: v0.25.0)
      Adding tui-input v0.11.1 (available: v0.12.1)
    Finished `release` profile [optimized] target(s) in 1.03s
   Replacing /root/.cargo/bin/codex-tui
    Replaced package `codex-tui v0.0.0 (/root/codex/codex-rs/tui)` with `codex-tui v0.0.0 (/root/codex/codex-rs/tui)` (executable `codex-tui`)
root@9b3577e33524:~/codex# codex-tui --help
CLI option that captures arbitrary configuration overrides specified as `-c key=value`. It intentionally keeps both halves **unparsed** so that the calling code can decide how to interpret the right-hand side

Usage: codex-tui [OPTIONS] [PROMPT]

Arguments:
  [PROMPT]
          Optional user prompt to start the session
<snip>
vyalamar · 1 year ago

This looks like this has something to do with LD_LIBRARY_PATH or FIPS.

tibo-openai collaborator · 10 months ago

Should be fixed, closing