Hi,
I tried to install the last version 0.62.0-rc.1 but I got an error :
Exception in callback of async function: Error: /lib64/libstdc++.so.6: version CXXABI_1.3.8 not found (required by /opt/rocketchat/rocket.chat.0.62.0 rc.1/programs/server/npm/node_modules/sharp/build/Release/sharp.node)
And indeed, this lib is not included within Centos7 :
strings /lib64/libstdc++.so.6 | grep CXXAB
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
I believe this is linked to #9711 where you removed GM to replace it by sharp. According to sharp.pixelplumbing.com/page/install#prerequisites centOS7 should works. I tried on a fresh new centOS install without any change in parameters and got the same error.
Can you be of any help for this ?
Thanks
Install on a centOS7 manually, the errors occurs whil starting main.js
Error: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/rocketchat/rocket.chat.0.62.0-rc.1/programs/server/npm/node_modules/sharp/build/Release/sharp.node
strings /lib64/libstdc++.so.6 | grep CXXAB
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
Same here.
like in #9167 , recompiling sharp node resolves the thing...
Indeed, I tried it a first time but I thought I got the same error, in fact I was misleaded by the error to version updates. Thanks for the update ! (to make it clear a simple node-gyp rebuild is enough, no need to copy the .node anywhere else).
Anyway there is still a problem, for now fibers recompil correctly through a simple npm install but sharp does not.
For whatever unlucky soul finds this from Google like I did, just a little clarification to clear up the guessing I had to do to work around this:
Install node-gyp like in #9167 but then cd into programs/server/npm/node_modules/sharp/build
and call node-gyp rebuild
, then (maybe unnecessary) call npm install
again from programs/server
and you should be good to go.
You don't have to call npm install
gain.
Upgrade gcc version to 5.4.0, and run:
cp /usr/local/lib64/libstdc++.so.6.0.21 /lib64
cd /lib64
rm -rf libstdc++.so.6
ln -s libstdc++.so.6.0.21 libstdc++.so.6
Right the same problem on fresh Centos 7
Solved with:
cd /opt/Rocket.Chat/programs/server/npm/node_modules
npm rebuild sharp
@axis78 Thanks a lot. It was been solved.
Same problem on RHEL7, but @axis78 help me solve this problem. THX.
This is what I鈥檝e used in our Redhat container:
export LD_PRELOAD=/opt/app-root/src/bundle/programs/server/npm/node_modules/sharp/vendor/lib/libz.so
Of course swap the bundle path for your path. But basically ships with a Libz.so so you can set this environment variable to load it up
https://github.com/RocketChat/Rocket.Chat/blob/develop/.docker/Dockerfile.rhel
A comment seems to have vanished saying it worked after trying again 馃榿
Yes - I wasn't awake and mis-posted the comment here. But originally it belonged here where you can find it now: https://github.com/RocketChat/Rocket.Chat/issues/12788#issuecomment-443643583
Most helpful comment
Right the same problem on fresh Centos 7
Solved with: