Cmake troubleshoting - I2PC/xmipp GitHub Wiki

Typing cmake --version or trying to compile Xmipp appears:

cmake: libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by cmake) (or similar)

That appears in new versions of Cmake with older versions of the enviroment Scipion created with gcc-10. To solve it, you may add the path of the conda lib in the LD_LIBRARY_PATH to avoid that the new Cmake tries to read older *.so files. Write the next line in the .bashrc file:

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH

Could also be necessary to add /path/To/Conda/lib at the beginning of the LD_LIBRARY_PATH.

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/path/To/Conda/lib:$LD_LIBRARY_PATH

Other solutions

  • Reinstall the library libstdcxx on the base enviroment of Conda conda install -c anaconda libstdcxx-ng and add the path of the base enviroment on LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/conda/lib
  • If your Conda was compiled with an older version of gcc you could try to compile Xmipp with an older version of gcc (limitation: we require gcc >=8)
  • You could reinstall your Conda, but you may need to reinstall Scipion and all the plugins of Scipion that require environments