brain.js icon indicating copy to clipboard operation
brain.js copied to clipboard

error build brain.js

Open bebreshka opened this issue 2 years ago • 5 comments

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs npm ERR! code 1 npm ERR! path /home/kotik9821/Desktop/node_modules/gl npm ERR! command failed npm ERR! command sh -c -- prebuild-install || node-gyp rebuild npm ERR! make: вход в каталог «/home/kotik9821/Desktop/node_modules/gl/build» npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o npm ERR! make: выход из каталога «/home/kotik9821/Desktop/node_modules/gl/build» npm ERR! prebuild-install warn install No prebuilt binaries found (target=19.9.0 runtime=node arch=x64 libc= platform=linux) npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info find Python using Python version 3.11.3 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/kotik9821/Desktop/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/kotik9821/Desktop/node_modules/gl/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/kotik9821/Desktop/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/kotik9821/.cache/node-gyp/19.9.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/kotik9821/.cache/node-gyp/19.9.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/kotik9821/Desktop/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/kotik9821/.cache/node-gyp/19.9.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/kotik9821/Desktop/node_modules/gl', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../angle/src/common/debug.h:16, npm ERR! from ../angle/src/common/mathutil.h:12, npm ERR! from ../angle/src/common/Float16ToFloat32.cpp:9: npm ERR! ../angle/src/common/angleutils.h:36:14: ошибка: «uintptr_t» не является именем типа npm ERR! 36 | extern const uintptr_t DirtyPointer; npm ERR! | ^~~~~~~~~ npm ERR! ../angle/src/common/angleutils.h:21:1: замечание: «uintptr_t» is defined in header «»; did you forget to «#include »? npm ERR! 20 | #include npm ERR! +++ |+#include npm ERR! 21 | npm ERR! make: *** [angle/src/angle_common.target.mk:157: Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o] Ошибка 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/kotik9821/Desktop/node_modules/node-gyp/lib/build.js:203:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) npm ERR! gyp ERR! System Linux 6.1.28-1-lts npm ERR! gyp ERR! command "/usr/bin/node" "/home/kotik9821/Desktop/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /home/kotik9821/Desktop/node_modules/gl npm ERR! gyp ERR! node -v v19.9.0 npm ERR! gyp ERR! node-gyp -v v9.3.1 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /home/kotik9821/.npm/_logs/2023-05-23T11_00_16_885Z-debug-0.log

bebreshka avatar May 23 '23 11:05 bebreshka

Any updates? I mean, if this error does not get fixed, there is no way to use this library on Linux.

kul-sudo avatar Jul 23 '23 12:07 kul-sudo

See #905

cclauss avatar Jul 24 '23 11:07 cclauss

I'am use archlinux image

bebreshka avatar Aug 04 '23 23:08 bebreshka

I have the same problem.

zackylight avatar Dec 02 '23 15:12 zackylight

Hello, Still got the same Error display. Try to running on Linux/Ubuntu 22.04-Server. Can't do npm install brain.js

I was doing some test with Ubuntu 22.04 - Server.

This is my note:

Went ubuntu 22.04 get install and all packet are update. We get version Python3 by default and npm install brain.js get error.

I fix this doing this step:

STEP 1: sudo apt install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config STEP 2: If you dont got install python2 install it. STEP 3: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 STEP 4: sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 2 STEP 5: sudo update-alternatives --config python STEP 6: Select Python Version 2 STEP 7: Now you can do npm install brain.js

NOTE: This still drop the error: npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

But brain.js get install it. Hope this help!!

unixfool avatar Dec 31 '23 12:12 unixfool