Latest release won't start on CentOS7

Started by mwm64

mwm64 Lv 1

Foldit Error: Could not load library: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by cmp-binary-f70f3b437e38da515248968020f6a8c5/game_library.so).

libstdc++.so.6 only goes up to GLIBCXX_3.4.19 on this platform…

rmoretti Staff Lv 1

First off, check that you're up-to-date on all your currently installed libraries, particularly the libstdc++ ones.

If that doesn't work, and if you have administrator access, I believe the easiest next step would be to install an updated GLIBCXX for CentOS with the Software Collections machinery (https://www.softwarecollections.org/en/docs/). – You would first make sure that you have installed the Software collections framework (yum install centos-release-scl) and then you would install the Devtoolset package (yum install devtoolset-8. 8 is the most recent, but I think anything 5 and over will do.) This you should only have to do once.

Then to launch Foldit, you should be able to run scl enable devtoolset-8 Foldit instead of just ./Foldit (You can make a shell script or a shortcut to make it easier.)

If you don't have administrator access, then you'll probably want to download a pre-built version of GCC (version 5 or greater) to your user directory, or download the GCC source code and compile it yourself (use the --prefix option on the configure script to specify an install path in your user directory). Either way, you can set the LD_LIBRARY_PATH environment variable to include the path to the new GCC's lib64/ directory.