IBM / node-red-tensorflowjs

Node-RED node with a TensorFlow.js Object Detection model
Apache License 2.0
109 stars 60 forks source link

npm rebuild @tensorflow/tfjs-node --build-from-source #7

Open johnwalicki opened 4 years ago

johnwalicki commented 4 years ago

When starting node-red on my RHEL 7.7 system, there are errors:

node-pre-gyp info This Node instance does not support builds for N-API version 5
13 Jan 14:42:39 - [error] [tfjs-object-detection:d7c1eecf.82a1e] Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /~/node-red-tensorflowjs/node-red-contrib-tfjs-object-detection/node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node)

I had to rebuild

npm rebuild @tensorflow/tfjs-node --build-from-source

When I restarted Node-RED, the GLIBC and some of the node-pre-gyp errors disappeared. The flow and object detection then works.

johnwalicki commented 4 years ago

FWIW - I am running node 12.9.1