Content-Length: 320199 | pFad | http://github.com/All-Hands-AI/OpenHands/pull/11337

6F Fix CLI binary GLIBC compatibility for older Linux systems by malhotra5 · Pull Request #11337 · All-Hands-AI/OpenHands · GitHub
Skip to content

Conversation

malhotra5
Copy link
Contributor

@malhotra5 malhotra5 commented Oct 13, 2025

  • This change is worth documenting at https://docs.all-hands.dev/
  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality this introduces.

Fixes GLIBC compatibility issues that prevented the OpenHands CLI binary from running on older Linux systems like Ubuntu 22.04. The pre-built Linux binary now works on Ubuntu 22.04+ and most modern Linux distributions, eliminating the "GLIBC_2.38 not found" error.


Summarize what the PR does, explaining any non-trivial design decisions.

This PR addresses GLIBC compatibility issues with the OpenHands CLI binary by:

Building on Ubuntu 22.04

Followup PR will add testing for multiple linux distributions to ensure that the binary can be complied and run appropriately


Link of any specific issues this addresses:

Addresses the GLIBC compatibility issue reported where users on Ubuntu 22.04 encountered:

[PYI-4084584:ERROR] Failed to load Python shared library '/tmp/_MEIk9hBhm/libpython3.12.so.1.0': 
/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found

@malhotra5 can click here to continue refining the PR


To run this PR locally, use the following command:

GUI with Docker:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:e9a62b3-nikolaik   --name openhands-app-e9a62b3   docker.all-hands.dev/all-hands-ai/openhands:e9a62b3

CLI with uvx:

uvx --python 3.12 --from git+https://github.com/All-Hands-AI/OpenHands@fix-cli-glibc-compatibility#subdirectory=openhands-cli openhands

openhands-agent and others added 2 commits October 13, 2025 13:21
- Build Linux binary on Ubuntu 20.04 instead of ubuntu-latest (24.04) for better GLIBC compatibility
- Add multi-version testing on Ubuntu 20.04, 22.04, and 24.04 to catch compatibility issues
- Update artifact naming and workflow structure for clarity
- Ensure binary works on older Linux systems with GLIBC 2.31+

Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Contributor

github-actions bot commented Oct 13, 2025

Coverage report

This PR does not seem to contain any modification to coverable code.

@malhotra5 malhotra5 marked this pull request as ready for review October 13, 2025 17:02
@malhotra5 malhotra5 enabled auto-merge (squash) October 13, 2025 17:39
@malhotra5 malhotra5 merged commit 609fefc into main Oct 13, 2025
28 checks passed
@malhotra5 malhotra5 deleted the fix-cli-glibc-compatibility branch October 13, 2025 18:52
@malhotra5 malhotra5 mentioned this pull request Oct 13, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/All-Hands-AI/OpenHands/pull/11337

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy