I'm getting an error when try to install python 3.6.0 (I've tried other versions like 3.9.0, 3.6.10, 3.7...).
$ asdf install python 3.6.0
python-build 3.6.0 /Users/diegoos/.asdf/installs/python/3.6.0
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.6.0.tar.xz...
-> https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
Installing Python-3.6.0...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 10.16 using python-build 1.2.23-16-gb4a5bb3d)
Inspect or clean up the working tree at /var/folders/qp/m_z367xx0lg6vggb75r7smn00000gp/T/python-build.20210224182046.88410
Results logged to /var/folders/qp/m_z367xx0lg6vggb75r7smn00000gp/T/python-build.20210224182046.88410.log
Last 10 log lines:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/diegoos/.asdf/installs/python/3.6.0/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/diegoos/.asdf/installs/python/3.6.0/include -DPy_BUILD_CORE -c ./Modules/errnomodule.c -o Modules/errnomodule.o
./Modules/posixmodule.c:8146:15: error: implicit declaration of function 'sendfile' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = sendfile(in, out, offset, &sbytes, &sf, flags);
^
./Modules/posixmodule.c:10340:5: warning: code will never be executed [-Wunreachable-code]
Py_FatalError("abort() called from Python code didn't abort!");
^~~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [Modules/posixmodule.o] Error 1
make: *** Waiting for unfinished jobs....
I'm using:
MacOs Big Sur Version 11.2.1
Clang 12.0.0
$ clang --version
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
gcc
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Hi.
I'm getting an error when try to install python 3.6.0 (I've tried other versions like 3.9.0, 3.6.10, 3.7...).
I'm using:
MacOs Big Sur Version 11.2.1
Clang 12.0.0
gcc
Command Line Tools version: 12.4.0.0.1.1610135815
Until now I've tried to:
zlib
andbzip2
from homebrewCan someone help with any other alternative or way to fix this?