我已使用以下步骤提供的手动步骤在RHEL 7.2上安装了Rocket.Chat: https://rocket.chat/docs/installation/manual-installation/centos
我在系统日志中遇到以下错误:
Jan 7 16:39:20 ibmsitldct02 rocketchat: Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-57/fibers.node)
这是我在服务器上使用的libstdc库的内容:
$ ls -lrt /lib64/libstdc*
-rwxr-xr-x 1 root root 830776 Mar 5 2015 /lib64/libstdc++.so.5.0.7
-rwxr-xr-x 1 root root 991616 Oct 30 06:39 /lib64/libstdc++.so.6.0.19
lrwxrwxrwx 1 root root 18 Dec 19 12:26 /lib64/libstdc++.so.5 -> libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 19 Jan 2 14:12 /lib64/libstdc++.so.6 -> libstdc++.so.6.0.19
不幸的是,我已经在服务器上安装了3.4.20版本v6.0.19:
$ strings /lib64/libstdc++.so.6.0.19 |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_DEBUG_MESSAGE_LENGTH
Yum提示消息是最新的:
$ sudo yum install libstdc++.so.6
Plugin "search-disabled-repos" requires API 2.7. Supported API is 2.6.
Loaded plugins: langpacks, product-id, rhui-lb, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Package libstdc++-4.8.5-36.el7.i686 already installed and latest version
Nothing to do
有没有办法解决这个错误?
温馨的问候, 安奇
答案 0 :(得分:1)
使用针对该错误列出的解决方法,该问题已得到解决。基本上,通过为我的操作系统重建node-gyp https://github.com/RocketChat/Rocket.Chat/issues/9167
npm install -g node-gyp
cd /opt/Rocket.Chat/programs/server/node_modules/fibers/
node-gyp rebuild
cp build/Release/fibers.node bin/linux-x64-57/fibers.node
systemctl start rocketchat.service