asdf-community / asdf-community/asdf-python
Cannot install Python 3.8 on macOS Monterey on Apple M1 Max
- Dominant language
- Shell
- Stars
- 729
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I can't get `asdf install python 3.8.9` working on an Apple M1 Max MBP with macOS Monterey, for various architecture-related reasons.
The closest I managed to get was by setting `PYTHON_CONFIGURE_OPTS="--build=aarch64-apple-darwin20.6.0"`:
PYTHON_CONFIGURE_OPTS="--build=aarch64-apple-darwin20.6.0" asdf install python
```
python-build 3.8.9 /Users/george/.asdf/installs/python/3.8.9
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.9.tar.xz...
-> https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tar.xz
Installing Python-3.8.9...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 12.1 using python-build 2.2.2-14-g381002db)
Inspect or clean up the working tree at /var/folders/2n/0qw42fy16kd6m7_50mm_hyrh0000gn/T/python-build.20211220143521.6155
Results logged to /var/folders/2n/0qw42fy16kd6m7_50mm_hyrh0000gn/T/python-build.20211220143521.6155.log
Last 10 log lines:
"_libintl_textdomain", referenced from:
_PyIntl_textdomain in libpython3.8.a(_localemodule.o)
_PyIntl_textdomain in libpython3.8.a(_localemodule.o)
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64
clang: clang: error: error: linker command failed with exit code 1 (use -v to see invocation)
linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:709: Programs/_testembed] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:578: python.exe] Error 1
```
At this point I'm not sure how to resolve the linker error. Any insight would be appreciated.
Thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.