AltimateAI / AltimateAI/altimate-code

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

Abierto
#310 2 comentarios 0 reacciones 1 asignado Reclamado por @kulvirgit Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
811
Forks
134
Merge medio
3 d 2 h
PR fusionados (30 d)
50

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.