I installed X-PSI in an ubuntu 20.04 virtual machine on Surf Research Cloud which came with pre-installed gcc in /usr/bin/gcc. However, after installing X-PSI as CC=/usr/bin/gcc python setup.py install, matplotlib breaks down with the following error message:
File "matplotlib/cbook.py", line 32, in <module> from matplotlib import _api, _c_internal_utils
ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by site-packages/matplotlib/_c_internal_utils.cpython-312-x86_64-linux-gnu.so)
Is this something people have faced before using the default ubuntu gcc?
Based on the suggestion in this Stack, the problem was solved via conda install -c conda-forge gcc prior to installing X-PSI and then running CC=<home>/anaconda3/envs/xpsi_py3/bin/gcc python setup.py install. Note that I didn't install MultiNest, so this step might need to be performed beforehand if installing MultiNest.
If others haven't face this before, perhaps a cautionary word can be added to the docs in case new users do.
https://github.com/xpsi-group/xpsi/blob/a3fd654ca4658825253b46d563d571e766b2f855/docs/source/install.rst?plain=1#L152
I installed X-PSI in an ubuntu 20.04 virtual machine on Surf Research Cloud which came with pre-installed
gcc
in/usr/bin/gcc
. However, after installing X-PSI asCC=/usr/bin/gcc python setup.py install
, matplotlib breaks down with the following error message:Is this something people have faced before using the default ubuntu gcc?
Based on the suggestion in this Stack, the problem was solved via
conda install -c conda-forge gcc
prior to installing X-PSI and then runningCC=<home>/anaconda3/envs/xpsi_py3/bin/gcc python setup.py install
. Note that I didn't install MultiNest, so this step might need to be performed beforehand if installing MultiNest.If others haven't face this before, perhaps a cautionary word can be added to the docs in case new users do.