asdf-community / asdf-community/asdf-python
Cannot install Python 3.8 on macOS Monterey on Apple M1 Max
- Vorherrschende Sprache
- Shell
- Sterne
- 730
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduziere `asdf install python 3.8.9` auf dem gemeldeten Apple M1 Max und untersuche den protokollierten Arbeitsbaum unter `/var/folders/2n/0qw42fy16kd6m7_50mm_hyrh0000gn/T/python-build.20211220143521.6155`. Beginne mit den architekturbezogenen configure-Optionen und der Linker-Ausgabe; abgeschlossen ist die Aufgabe, wenn ein reproduzierbarer Installationspfad identifiziert oder die Einschränkung und die erforderliche Einrichtung dokumentiert wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, python
- Bereich
- build-system, cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100