Installed the gyp packages like the below
npm install node-gyp --save-dev
npm install node-addon-api
And when try to run the code, it gave error like below. This was screwy!
Error: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/admin/test/server/cppmodule/testaddon.node)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:992:18)
at Module.load (internal/modules/cjs/loader.js:798:32)
at Function.Module._load (internal/modules/cjs/loader.js:711:12)
at Module.require (internal/modules/cjs/loader.js:838:19)
at require (internal/modules/cjs/helpers.js:74:18)
trying to search for the details of this error on the internet, below were seen it says that the details can be found at the below path
https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found
LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
But this too did not resolve the issue, moreover the contents in the lib64 directory were empty. Not sure if it was hidden.
Having all these issues, thought to compile the code on this machine to avoid these issues.
References:
https://medium.com/@atulanand94/beginners-guide-to-writing-nodejs-addons-using-c-and-n-api-node-addon-api-9b3b718a9a7f
https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found
npm install node-gyp --save-dev
npm install node-addon-api
And when try to run the code, it gave error like below. This was screwy!
Error: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/admin/test/server/cppmodule/testaddon.node)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:992:18)
at Module.load (internal/modules/cjs/loader.js:798:32)
at Function.Module._load (internal/modules/cjs/loader.js:711:12)
at Module.require (internal/modules/cjs/loader.js:838:19)
at require (internal/modules/cjs/helpers.js:74:18)
trying to search for the details of this error on the internet, below were seen it says that the details can be found at the below path
https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found
LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
But this too did not resolve the issue, moreover the contents in the lib64 directory were empty. Not sure if it was hidden.
Having all these issues, thought to compile the code on this machine to avoid these issues.
References:
https://medium.com/@atulanand94/beginners-guide-to-writing-nodejs-addons-using-c-and-n-api-node-addon-api-9b3b718a9a7f
https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found
No comments:
Post a Comment