ハマった
$ pyenv install 3.11.2
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.11.0.tar.xz...
-> https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz
Installing Python-3.11.0...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 13.3.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/hq/9m1dyvx961ldl2p4kmfmmsgw0000gn/T/python-build.20230508155239.50164
Results logged to /var/folders/hq/9m1dyvx961ldl2p4kmfmmsgw0000gn/T/python-build.20230508155239.50164.log
Last 10 log lines:
"_libintl_setlocale", referenced from:
__locale_setlocale in _localemodule.o
__locale_localeconv in _localemodule.o
"_libintl_textdomain", referenced from:
__locale_textdomain in _localemodule.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Programs/_freeze_module] Error 1
make: *** Waiting for unfinished jobs....
2 warnings generated.
解決方法
$ brew install gettext
$ pyenv install 3.11.2