什么envvariables应该节点使用加载库?

我得到这个错误在服务器上:

node:加载共享库时出错:libstdc ++。so.6:无法打开共享目标文件:没有这样的文件或目录

然而一个简单的发现表明:

/usr/lib/x86_64-linux-gnu/libstdc++.so.6 

我已经在.bashrc中设置了以下内容:

 export PATH=$PATH:~/.local/bin:/usr/lib export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:~/.local/lib export LIBRARY_PATH=/usr/lib:/usr/local/lib:~/.local/lib 

但节点找不到现有的libstd库。 我已经做好了

 source .bashrc 

并且

 echo $LIBRARY_PATH 

这是我search的一个真正常见的问题,但大多数解决schemebuild议在我的情况下安装文件安装节点只是看不到它。

尝试通过apt-get install lib32stdc++6安装缺less的lib32stdc++

设置LD_DEBUG以获得更好的诊断。
如果设置了LD_DEBUGvariables,则Linuxdynamic链接器将转储可用于快速解决大多数加载问题的debugging信息。 要查看可用的选项,只需运行任何具有variables设置为帮助的程序。

LD_DEBUG环境variables的有效选项是:

  libs display library search paths reloc display relocation processing files display progress for input file symbols display symbol table processing bindings display information about symbol binding versions display version dependencies all all previous options combined statistics display relocation statistics unused determined unused DSOs help display this help message and exit