我在Ubuntu21.10上从源代码中安装了Python3.5。
sudo make install
...
...
...
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Segmentation fault (core dumped)
make: *** [Makefile:1048: install] Error 139可能是什么原因?
我能做些什么来调试这个呢?
发布于 2022-03-08 12:10:45
当我试图从ubuntu20.10的源代码中安装python3.6时,也发生了类似的问题。
问题在这里描述:https://bugs.python.org/issue45700
修改构建
解决方法对我有用:在./configure之后,我修改了Makefile和Makefile.pre,并更改了优化标志"O3“-> "O2":
OPT= -DNDEBUG -g -fwrapv -O3 -Wall # orig line
OPT= -DNDEBUG -g -fwrapv -O2 -Wall # fixed line在此修改后继续如常进行:make,.
全局版本
导出具有'-O2‘值的PYTHON_CFLAGS,您将通过pyenv、asdf和可能的其他方法修复安装:
export PYTHON_CFLAGS='-O2'https://stackoverflow.com/questions/70064631
复制相似问题