node-datachannel icon indicating copy to clipboard operation
node-datachannel copied to clipboard

Cannot run on UBuntu 16.04 because of "GLIBC_2.25" not found

Open k8w opened this issue 2 years ago • 2 comments

Just:

require('node-datachannel')

And got error on UBuntu 16.04:

Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /app/webrtc-test/node_modules/node-datachannel/build/Release/node_datachannel.node)
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/app/webrtc-test/node_modules/node-datachannel/lib/index.js:2:25)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'ERR_DLOPEN_FAILED'
}

I've tried many ways to install GLIBC_2.25 but haven't made it yet.

Is there many way to let node_datachannel.node be compatible with UBuntu 16.04 ?

k8w avatar Jun 28 '22 17:06 k8w

How did you install nodejs? By using apt or snap?

what is your node version?

murat-dogan avatar Jun 29 '22 09:06 murat-dogan

@murat-dogan Node version is v16.15.1

I install node by:

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

(From https://github.com/nodesource/distributions/blob/master/README.md)

k8w avatar Jun 29 '22 11:06 k8w