You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found #1150
I am trying to publish my application that uses nodegit to Openshift, but i am getting this error:
Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /var/lib/openshift/*/app-root/runtime/repo/node_modules/nodegit/build/Release/nodegit.node)
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/lib/openshift/*/app-root/runtime/repo/node_modules/nodegit/dist/nodegit.js:11:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
Reacted by Jordon Biondo, absolute-quantum, DonBeom Ham, Mostafiz Rahman, Hervé Kyle MUTOMBO MATANDA, 小弟调调, Ihor Shkurko, Andrew Henry and 鸿则
Reacted by Jordon Biondo, Fire Chow, dujun, Andrew Henry, Sunny Mopada and dorsev
Your target deployment environment used a different (probably older)runtime C++ library libstdc++. The easiest way to fix this is to build node-git on your target environment from source, capture and deploy the binding.node file as a binary. Please note it might be incompatible with the environment your are deploying from.
Activity
saper commentedon Oct 15, 2016
Your target deployment environment used a different (probably older)runtime C++ library
libstdc++. The easiest way to fix this is to build node-git on your target environment from source, capture and deploy thebinding.nodefile as a binary. Please note it might be incompatible with the environment your are deploying from.jordonbiondo commentedon Oct 28, 2016
For others: I've been using this in my
package.jsonto make it work for now, it's not ideal but it works for my production and dev environments.