version `GLIBC_2.35' not found - cc-switch
Quick fix
The official AppImage needs a newer GLIBC. On RHEL/Rocky Linux, use the community Flatpak build or one built on an older base image.
Symptom
Section titled “Symptom”cc-switch: /lib64/libm.so.6: version `GLIBC_2.35' not found (required by cc-switch)The official cc-switch Linux AppImage and RPM package are built on a newer base system and link dynamically against GLIBC 2.35 and webkit2gtk-4.1. Enterprise distributions such as RHEL, Rocky Linux, and AlmaLinux (8.x and 9.x), however, stay on an older GLIBC for their whole lifecycle (2.28 on el8, 2.34 on el9) and their repositories lack the matching dependency packages, so running cc-switch triggers a missing dynamic library version error.
Uninstall or remove the official AppImage or RPM package that will not run.
Go to the Flatpak repository built on Ubuntu 20.04 by community developer @suwenqiang: https://github.com/suwenqiang/ccswitch-ubuntu20
Follow that repository to install the Flatpak runtime and this community build of cc-switch, sidestepping the GLIBC version limit of the host.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
- Why does installing the RHEL 9 RPM report libwebkit2gtk-4.1.so.0 missing?
- The RHEL 9 repositories provide only webkit2gtk3 (the 4.0 ABI) while the official RPM depends on the 4.1 ABI. The system GLIBC also tops out at 2.34, which cannot satisfy the 2.35 the AppImage needs.
- Will the official build support RHEL/Rocky Linux 8.x natively later?
- The relevant issue is still open. The community suggests building on an older base system such as Ubuntu 20.04, or shipping Flatpak to decouple from system dependencies.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.