Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.62.rc] CentOS7 `CXXABI_1.3.8' not found for Sharp module #9829

Closed
fcoppolani opened this issue Feb 22, 2018 · 12 comments
Closed

[0.62.rc] CentOS7 `CXXABI_1.3.8' not found for Sharp module #9829

fcoppolani opened this issue Feb 22, 2018 · 12 comments

Comments

@fcoppolani
Copy link

fcoppolani commented Feb 22, 2018

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

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.0-rc.1
  • Operating System: CentOS7
  • Deployment Method(snap/docker/tar/etc): manually
  • Number of Running Instances: 2
  • DB Replicaset Oplog: no
  • Node Version: 8.9.4
  • mongoDB Version:

Steps to Reproduce:

Install on a centOS7 manually, the errors occurs whil starting main.js

Relevant logs:

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
@fcoppolani fcoppolani changed the title CentoS7 `CXXABI_1.3.8' not found for Sharp module [0.62.rc] CentOS7 `CXXABI_1.3.8' not found for Sharp module Feb 22, 2018
@ghost
Copy link

ghost commented Feb 23, 2018

Same here.

@ghost
Copy link

ghost commented Feb 25, 2018

like in #9167 , recompiling sharp node resolves the thing...

@fcoppolani
Copy link
Author

fcoppolani commented Feb 26, 2018

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.

@gigawhitlocks
Copy link

gigawhitlocks commented Mar 1, 2018

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.

@ghost
Copy link

ghost commented Mar 1, 2018

You don't have to call npm install gain.

@white-poto
Copy link

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

@aleks-o
Copy link

aleks-o commented Mar 8, 2018

Right the same problem on fresh Centos 7
Solved with:

cd /opt/Rocket.Chat/programs/server/npm/node_modules
npm rebuild sharp

@shionphan
Copy link

@axis78 Thanks a lot. It was been solved.

@Rohlik
Copy link
Contributor

Rohlik commented Apr 13, 2018

Same problem on RHEL7, but @axis78 help me solve this problem. THX.

@geekgonecrazy
Copy link
Contributor

geekgonecrazy commented Nov 30, 2018

This is what I’ve 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

@geekgonecrazy
Copy link
Contributor

A comment seems to have vanished saying it worked after trying again 😁

@gerricom
Copy link

gerricom commented Dec 3, 2018

Yes - I wasn't awake and mis-posted the comment here. But originally it belonged here where you can find it now: #12788 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants