AltimateAI / AltimateAI/altimate-code

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

Offen
#310 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @kulvirgit Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
811
Forks
134
Ø Merge
3 T. 2 Std.
Gemergte PRs (30 T.)
50

Beschreibung

## 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.