eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.23k stars 868 forks source link

node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node) on Red Hat 7 ppc64le #866

Closed redmark-redhat closed 4 years ago

redmark-redhat commented 4 years ago

Building Apache Flink I'm getting a node error.

I believe it's similar to issue as #852. The plugin is installing a ppc64le version of node that's incompatible with Red Hat Linux 7.6 & 7.7 (i.e. libstdc++.so.6). I suspect this node package was compiled on Ubuntu Linux for ppc64le.

Can the package be configured to use the native/local copy of node? Or add a feature to use the native/local copy?

What is the current behavior? .m2/repository/com/github/eirslett/node/10.9.0/node-10.9.0-linux-ppc64le.tar.gz is being copied to flink/flink-runtime-web/web-dashboard/node

/root/flink/flink-runtime-web/web-dashboard/node/node -v
/root/flink/flink-runtime-web/web-dashboard/node/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /root/flink/flink-runtime-web/web-dashboard/node/node)

Steps to reproduce. Red Hat 7.6 or 7.7 ppc64le with working local nodejs version 10.17.0

git clone https://github.com/apache/flink.git
cd flink
mvn clean package -DskipTests
redmark-redhat commented 4 years ago

Any thoughts on allowing the local copy of node to be used for the build process?

eirslett commented 4 years ago

If you want to use the native node.js binary, I suggest using exec-maven-plugin, like in this guide: https://addyosmani.com/blog/making-maven-grunt/