質問内容
現在自分のPC(MacBookPro ver10.14)にPython環境を構築しようとしたところ以下のようなエラーメッセージが発生してしまいました。
環境構築はProgateの記事を参考にしていました。(https://prog-8.com/docs/python-env)
Terminalの知識がまったくないため、何をどうしたら解決できるのか全くわからない状況です。
どなたかご回答いただければ大変助かります。
どうぞよろしくお願いいたします。
発生している問題・エラーメッセージ
$ pyenv install 3.6.5 python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.6.5.tar.xz... -> https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz Installing Python-3.6.5... python-build: use readline from homebrew BUILD FAILED (OS X 10.14.3 using python-build 20180424) Inspect or clean up the working tree at /var/folders/rt/spz6hl3x1rn8xdsk1hchgg200000gn/T/python-build.20190426174108.37831 Results logged to /var/folders/rt/spz6hl3x1rn8xdsk1hchgg200000gn/T/python-build.20190426174108.37831.log Last 10 log lines: checking for --with-universal-archs... no checking MACHDEP... darwin checking for --without-gcc... no checking for --with-icc... no checking for gcc... clang checking whether the C compiler works... no configure: error: in `/var/folders/rt/spz6hl3x1rn8xdsk1hchgg200000gn/T/python-build.20190426174108.37831/Python-3.6.5': configure: error: C compiler cannot create executables See `config.log' for more details make: *** No targets specified and no makefile found. Stop.
試したこと
ググって出てきた情報は基本試してみたのですが、解決しません。
$ xcode-select --install
$ brew install zlib
$sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
See `config.log' for more details
の config.log の中身はありますか?
こちらの記事のように様々な情報がわかる可能性があります
http://tazakazushi.net/configure_error.html