我试图使用以下命令将我的Centos6系统升级到g++ 4.8:
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
$ yum install devtoolset-2-gcc devtoolset-2-binutils
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran但是,在步骤2中我得到了一个错误:
# yum install devtoolset-2-gcc devtoolset-2-binutils
/usr/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory我安装了anaconda4.4,并从anaconda路径运行Pythond3.6。我不知道为什么在试图升级g++时看到这个错误。
发布于 2018-03-19 11:22:30
编辑/etc/ld.so.conf并运行ldconfig,如this answer所示。
https://stackoverflow.com/questions/49353406
复制相似问题