ramonmata/node-red-contrib-xbee

issues with bindings

Closed this issue · 1 comments

Hi Ramon,

been a create fan of your xbee node. I use it it in a lot of projects.
Recently, I got a new device, Seeed reTerminal DM, which runs debian and cannot install your node.
I have tried everything.
Different versions of nodejs and npm. Install and reinstall node-red. Different versions of serial port. Add the @serialport dependencies individually but can't get it to work.
See below for error log:

2023-06-10T03:24:23.186Z Install : node-red-contrib-xbee 1.1.1

2023-06-10T03:24:21.184Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-xbee@1.1.1
2023-06-10T03:24:22.803Z [err] npm
2023-06-10T03:24:22.804Z [err] WARN
2023-06-10T03:24:22.805Z [err] config production Use --omit=dev instead.
2023-06-10T03:24:29.347Z [err] npm
2023-06-10T03:24:29.348Z [err] ERR! code 1
2023-06-10T03:24:29.348Z [err] npm ERR!
2023-06-10T03:24:29.348Z [err] path
2023-06-10T03:24:29.349Z [err] /home/oliveri/.node-red/node_modules/@serialport/bindings
2023-06-10T03:24:29.355Z [err] npm ERR!
2023-06-10T03:24:29.355Z [err] command failed
2023-06-10T03:24:29.355Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2023-06-10T03:24:29.355Z [err] npm ERR! make: Entering directory '/home/oliveri/.node-red/node_modules/@serialport/bindings/build'
2023-06-10T03:24:29.355Z [err] npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
2023-06-10T03:24:29.355Z [err] npm ERR!
2023-06-10T03:24:29.356Z [err] make: Leaving directory '/home/oliveri/.node-red/node_modules/@serialport/bindings/build'
2023-06-10T03:24:29.356Z [err] npm ERR! prebuild-install warn install No prebuilt binaries found (target=19.9.0 runtime=node arch=arm64 libc= platform=linux)
2023-06-10T03:24:29.356Z [err] npm ERR!
2023-06-10T03:24:29.357Z [err] gyp info it worked if it ends with ok
2023-06-10T03:24:29.357Z [err] npm
2023-06-10T03:24:29.357Z [err] ERR! gyp info using node-gyp@9.3.1
2023-06-10T03:24:29.357Z [err] npm ERR! gyp info using node@19.9.0 | linux | arm64
2023-06-10T03:24:29.357Z [err] npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
2023-06-10T03:24:29.357Z [err] npm ERR! gyp info spawn /usr/bin/python3
2023-06-10T03:24:29.357Z [err] npm ERR! gyp info spawn args [
2023-06-10T03:24:29.357Z [err] npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2023-06-10T03:24:29.357Z [err] npm
2023-06-10T03:24:29.357Z [err] ERR! gyp info spawn args 'binding.gyp',
2023-06-10T03:24:29.357Z [err] npm ERR! gyp info spawn args '-f',
2023-06-10T03:24:29.357Z [err] npm
2023-06-10T03:24:29.358Z [err] ERR! gyp info spawn args 'make',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '-I',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '/home/oliveri/.node-red/node_modules/@serialport/bindings/build/config.gypi',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '-I',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '-I',
2023-06-10T03:24:29.358Z [err] npm ERR!
2023-06-10T03:24:29.358Z [err] gyp info spawn args '/home/oliveri/.cache/node-gyp/19.9.0/include/node/common.gypi',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library',
2023-06-10T03:24:29.358Z [err] npm
2023-06-10T03:24:29.358Z [err] ERR! gyp info spawn args '-Dvisibility=default',
2023-06-10T03:24:29.358Z [err] npm ERR!
2023-06-10T03:24:29.358Z [err] gyp info spawn args '-Dnode_root_dir=/home/oliveri/.cache/node-gyp/19.9.0',
2023-06-10T03:24:29.358Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2023-06-10T03:24:29.358Z [err] npm
2023-06-10T03:24:29.359Z [err] ERR! gyp info spawn args '-Dnode_lib_file=/home/oliveri/.cache/node-gyp/19.9.0/<(target_arch)/node.lib',
2023-06-10T03:24:29.359Z [err] npm
2023-06-10T03:24:29.359Z [err] ERR! gyp info spawn args '-Dmodule_root_dir=/home/oliveri/.node-red/node_modules/@serialport/bindings',
2023-06-10T03:24:29.359Z [err] npm ERR!
2023-06-10T03:24:29.359Z [err] gyp info spawn args '-Dnode_engine=v8',
2023-06-10T03:24:29.359Z [err] npm ERR! gyp info spawn args '--depth=.',
2023-06-10T03:24:29.359Z [err] npm ERR!
2023-06-10T03:24:29.359Z [err] gyp info spawn args '--no-parallel',
2023-06-10T03:24:29.359Z [err] npm ERR! gyp info spawn args '--generator-output',
2023-06-10T03:24:29.359Z [err] npm
2023-06-10T03:24:29.359Z [err] ERR! gyp info spawn args 'build',
2023-06-10T03:24:29.359Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.'
2023-06-10T03:24:29.359Z [err] npm ERR! gyp info spawn args ]
2023-06-10T03:24:29.359Z [err] npm ERR!
2023-06-10T03:24:29.359Z [err] gyp info spawn make
2023-06-10T03:24:29.359Z [err] npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2023-06-10T03:24:29.360Z [err] npm ERR! make: g++: No such file or directory
2023-06-10T03:24:29.360Z [err] npm
2023-06-10T03:24:29.360Z [err] ERR! make: *** [bindings.target.mk:114: Release/obj.target/bindings/src/serialport.o] Error 127
2023-06-10T03:24:29.360Z [err] npm ERR!
2023-06-10T03:24:29.360Z [err] gyp ERR! build error
2023-06-10T03:24:29.360Z [err] npm ERR! gyp ERR! stack Error: make failed with exit code: 2
2023-06-10T03:24:29.360Z [err] npm
2023-06-10T03:24:29.360Z [err] ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
2023-06-10T03:24:29.360Z [err] npm ERR!
2023-06-10T03:24:29.360Z [err] gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2023-06-10T03:24:29.360Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
2023-06-10T03:24:29.360Z [err] npm ERR! gyp ERR! System Linux 6.1.21-v8+
2023-06-10T03:24:29.360Z [err] npm
2023-06-10T03:24:29.360Z [err] ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2023-06-10T03:24:29.360Z [err] npm ERR!
2023-06-10T03:24:29.360Z [err] gyp ERR! cwd /home/oliveri/.node-red/node_modules/@serialport/bindings
2023-06-10T03:24:29.360Z [err] npm ERR! gyp ERR! node -v v19.9.0
2023-06-10T03:24:29.361Z [err] npm ERR! gyp ERR! node-gyp -v v9.3.1
2023-06-10T03:24:29.361Z [err] npm
2023-06-10T03:24:29.361Z [err] ERR! gyp ERR! not ok
2023-06-10T03:24:29.366Z [err]
2023-06-10T03:24:29.366Z [err] npm ERR!
2023-06-10T03:24:29.366Z [err] A complete log of this run can be found in: /home/oliveri/.npm/_logs/2023-06-10T03_24_22_699Z-debug-0.log
2023-06-10T03:24:29.389Z rc=1

Solved with fresh OS install.