libm.a位置linux,Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27'

I am building my node module (using N-API) both for Mac (10.9+) and Linux (Ubuntu 18). When I am deploying my module to remote machine (to Heroku), I am getting:

Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /opt/atlassian/pipelines/agent/build/addons/Release-linux/module.node)

at Object.Module._extensions..node (internal/modules/cjs/loader.js:717:18)

at Module.load (internal/modules/cjs/loader.js:598:32)

at tryModuleLoad (internal/modules/cjs/loader.js:537:12)

(...)

Running ldd --version on both machines:

~ $ ldd --version

ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27

and:

~ $ ls /lib/x86_64-linux-gnu/

libm.so.6 (...)

Also, I am not sure why linking to libm is necessary, as I am not using #include within my code (compiler is adding libm implicitly?).

Any help would be appreciated.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值