One of my node_modules sub-dependencies needs GLIBCXX_3.4.29
. The image that we use is based on Debian Buster, which doesnt have the needed version
Based on the answers from this, i tried to see what I got installed.
Below is the output of strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_DEBUG_MESSAGE_LENGTH
I tried doing the solutions mentioned that involved apt installs
and changing the export library
.
I am not a C++ person, and I am not sure how to get the specific needed items from the tarball etc.
When I try to run the project locally, it works fine, since I have GLIBCXX_3.4.30
(and the missing .29
) in my machine.
I also tried moving to node:16-bullseye
and while that is better, it only gets up to GLIBCXX_3.4.28
.
The node_module
at "fault" is lru-native2
(source). In my case, a sample of yarn.lock
lru-native2@^1.2.0:
version "1.2.5"
resolved "https://registry.yarnpkg.com/lru-native2/-/lru-native2-1.2.5.tgz#06ad02a631c18426f31fdca9dd827a8e6fdbb4ca"
I would like to avoid modifying the yarn lockfile
, but at this point, I am up to that if nothing else works.
Any workarounds/ guide on how to install the missing libraries from src?