【发布时间】:2022-07-30 08:22:11
【问题描述】:
我一直在尝试使用 asdf 在我的本地项目中安装 python 3.9.1
当尝试运行asdf install python 3.9.1 时,它会返回此错误。
我已经尝试安装依赖项,但仍然没有成功。
asdf install python 3.9.1
python-build 3.9.1 /home/lucborges/.asdf/installs/python/3.9.1
Downloading Python-3.9.1.tar.xz...
-> https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz
Installing Python-3.9.1...
/home/lucborges/.asdf/plugins/python/pyenv/plugins/python-build/bin/python-build: line 787: 77254 Killed ( if [ "${CFLAGS+defined}" ] || [ "${!PACKAGE_CFLAGS+defined}" ]; then
export CFLAGS="$CFLAGS ${!PACKAGE_CFLAGS}";
fi; if [ -z "$CC" ] && is_mac -ge 1010; then
export CC=clang;
fi; ${!PACKAGE_CONFIGURE:-./configure} --prefix="${!PACKAGE_PREFIX_PATH:-$PREFIX_PATH}" $CONFIGURE_OPTS ${!PACKAGE_CONFIGURE_OPTS} "${!PACKAGE_CONFIGURE_OPTS_ARRAY}" || return 1 ) 1>&4 2>&1
BUILD FAILED (Ubuntu 20.04 using python-build 2.2.5-11-gf0f2cdd1)
Inspect or clean up the working tree at /tmp/python-build.20220401112545.77098
Results logged to /tmp/python-build.20220401112545.77098.log
Last 10 log lines:
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence...
【问题讨论】:
-
我也面临同样的问题
-
同样,面临同样的问题。
-
你能解决这个问题吗?有同样的问题:(