AltimateAI / AltimateAI/altimate-code

[Bug] GLIBC_2.35 not found or missing native binding

オープン
#310 コメント 2 件 リアクション 0 件 担当者 1 名 @kulvirgit が担当を希望しています GitHub で見る
bug
主要言語
TypeScript
スター
811
フォーク
134
平均マージ
3日 2時間
マージ済み PR(30日)
50

説明

## Description

On a fresh install and startup, I am not able to get into the CLI.

## Steps to Reproduce

1. Install `npm install -g altimate-code`
2. Run `altimate`

## Expected Behavior

I should be able to get into the CLI, or if I am missing dependencies, it should fail gracefully and show a helpful error message, instead of the stack trace.

## Actual Behavior

On a fresh install, got an error on startup.

```
$ npm install -g altimate-code

added 7 packages in 26s
npm notice
npm notice New major version of npm available! 10.5.0 -> 11.12.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.0
npm notice Run npm install -g npm@11.12.0 to update!
npm notice
$ altimate
558 | }
559 | }
560 |
561 | if (!nativeBinding) {
562 | if (loadErrors.length > 0) {
563 | throw new Error(
^
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.
at (/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js:563:15)

283 | return require('./altimate-core.linux-x64-gnu.node')
284 | } catch (e) {
285 | loadErrors.push(e)
286 | }
287 | try {
288 | const binding = require('@altimateai/altimate-core-linux-x64-gnu')
^
error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core-linux-x64-gnu/altimate-core.linux-x64-gnu.node)
cause: error: Cannot find module './altimate-core.linux-x64-gnu.node' from '/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js',
code: "ERR_DLOPEN_FAILED"

at requireNative (/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js:288:17)
at (/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js:526:17)

Bun v1.3.10 (Linux x64)
```

## Environment

- **OS:** Ubuntu 20.04.6 LTS
- **CLI version:**
- **Python version:**
- **Node version:** 20.12.2

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。