github / github/copilot-cli

Copilot CLI fails to start on Rocky Linux 8.10 due to GLIBC version mismatch in distributed native modules

未关闭
#3,276 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:installation area:platform-linux
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

Attempting to use Copilot CLI on Rocky Linux 8.10 fails to initialize due to missing GLIBC symbols required by the distributed native module (e.g., `GLIBC_2.29`, `GLIBC_2.30`, `GLIBC_2.33`, `GLIBC_2.34`). This leads to startup errors about native bindings not being found, despite user instructions to reinstall packages. The CLI cannot operate on popular enterprise Linux distributions using GLIBC lower than 2.29.

### Affected version

1.0.46

### Steps to reproduce the behavior

1. Install Copilot CLI 1.0.46 on Rocky Linux 8.10 (or any related EL based distro)
2. Run Copilot CLI command (e.g., `copilot`)
3. Observe error about missing native bindings referencing multiple GLIBC versions
4. Check ldd results for native module: shows missing GLIBC_2.29, GLIBC_2.30, GLIBC_2.33, GLIBC_2.34

### Expected behavior

Copilot CLI should start and run on standard enterprise Linux like Rocky Linux 8.10 (with older GLIBC).

### Additional context

Logs:
```
[ERROR] Failed to initialize sidekick agents: Error: Failed to load built-in sidekick agent "github-context": Failed to read file .../github-context.yaml: Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
```
ldd command:
```
ldd ~/.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node

.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libc.so.6: version `GLIBC_2.30' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
```
OS: Rocky Linux 8.10 (RHEL/CentOS compatible)
Copilot CLI 1.0.46
Node.js v24.15.0

Request: Please provide Copilot CLI binaries compatible with enterprise Linux GLIBC versions as found in Rocky/CentOS/RHEL 8.x, or alternatives/workarounds for this environment.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。