【问题标题】:libpython2.7.20.1.0 not found while installing g++ 4.8安装 g++ 4.8 时找不到 libpython2.7.20.1.0
【发布时间】:2018-03-18 22:20:39
【问题描述】:

我正在尝试使用以下命令将我的 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

我已经安装了 anaconda 4.4 并且正在从我的 Anaconda 路径运行 Python 3.6。我不确定为什么在尝试升级 g++ 时会看到此错误。

【问题讨论】:

  • This answer 解决了看不到 libpython2.7.so.1.0 的普遍问题,但它回答了另一个问题。将这个答案标记为某种重复的礼仪,还是我将这个答案指向那个答案?

标签: g++ g++4.8


【解决方案1】:

编辑/etc/ld.so.conf 并运行ldconfig,如this answer 所示。

【讨论】:

    猜你喜欢
    • 2016-01-28
    • 1970-01-01
    • 1970-01-01
    • 2022-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-15
    • 2013-06-17
    相关资源
    最近更新 更多