JCMais / node-libcurl

libcurl bindings for Node.js
https://npmjs.org/package/node-libcurl
MIT License
666 stars 118 forks source link

Getting compatibility issue with libstdc++.so.6 #385

Closed webdevabhi closed 8 months ago

webdevabhi commented 1 year ago

while deploying my app using docker to ubuntu server. Getting error like:

This error message indicates that the version of libstdc++.so.6 installed on your system is too old to be compatible with the version of node-libcurl that you are trying to use. Specifically, the version of GLIBCXX required by node-libcurl is 3.4.26, which is not available on your system.

To resolve this issue, you can try one or more of the following solutions:

Upgrade your operating system to a version that includes the required GLIBCXX version.

Install a newer version of the libstdc++ library that includes the required GLIBCXX version.

Compile node-libcurl from source on your system, which will link against the version of libstdc++ that is installed on your system.

Use a precompiled binary of node-libcurl that is compatible with the version of libstdc++ installed on your system.

The best solution depends on your specific situation, and you may need to consult with a software developer or system administrator for further assistance.
delebakare commented 1 year ago

Getting similar error when deploying firebase functions using github actions. Here's the error.

Function failed on loading user code. This is likely due to a bug in the user code. Error message: Provided module can't be loaded. Is there a syntax error in your code? Detailed stack trace: Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /workspace/node_modules/node-libcurl/lib/binding/node_libcurl.node) at Object.Module._extensions..node (internal/modules/cjs/loader.js:11[44] at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:101:18) at Object. (/workspace/node_modules/node-libcurl/dist/Easy.js:5:18) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:9[50] at Function.Module._load (internal/modules/cjs/loader.js:790:12) Could not load the function, shutting down.

delebakare commented 1 year ago

using v2.3.4 fixed it for me

JCMais commented 8 months ago

This error message means you have to build node-libcurl from source for your OS, instructions on how to do this are available in the README.