前提・実現したいこと
現在python3.6.5を使用しているが、アナコンダと同じ3.6.9に変更したいためpyenvを使用して変更しようとしている
発生している問題・エラーメッセージ
python-build: use openssl@1.1 from homebrew python-build: use readline from homebrew Downloading Python-3.6.9.tar.xz... -> https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz Installing Python-3.6.9... python-build: use readline from homebrew python-build: use zlib from xcode sdk BUILD FAILED (OS X 10.14.6 using python-build 20180424) Inspect or clean up the working tree at /var/folders/1w/n7_6cwys5c77hdvrl8v_r6ym0000gn/T/python-build.20191118174942.13224 Results logged to /var/folders/1w/n7_6cwys5c77hdvrl8v_r6ym0000gn/T/python-build.20191118174942.13224.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/1w/n7_6cwys5c77hdvrl8v_r6ym0000gn/T/python-build.20191118174942.13224/Python-3.6.9': configure: error: C compiler cannot create executables See `config.log' for more details make: *** No targets specified and no makefile found. Stop. (base) twinte-MacBook-Pro:~ yuka$ cd var/folders/1w/n7_6cwys5c77hdvrl8v_r6ym0000gn/T/python-build.20191118174942.13224/Python-3.6.9 bash: cd: var/folders/1w/n7_6cwys5c77hdvrl8v_r6ym0000gn/T/python-build.20191118174942.13224/Python-3.6.9: No such file or directory
該当のソースコード
pyenv install 3.6.9
試したこと
pyenvのアップデート
xcode-select --installの実行
config.logの中身を色々と調べてみたところ、似たような問題で悩んでいた方が見つからず、自分でもよく理解できなかったため、皆様のお力を貸してください
【追記】アドバイスいただいた通りhttps://teratail.com/questions/179205の手法でcurlを/usr/bin/curlとなるように調整、未だエラーのまま
以下config.logの中身
config.log
1This file contains any messages produced by co 2mpilers while 3running configure, to aid debugging if configure makes a mistake. 4 5It was created by python configure 3.6, which was 6generated by GNU Autoconf 2.69. Invocation command line was 7 8(中略) 9 10 11## ----------- ## 12## Core tests. ## 13## ----------- ## 14 15configure:2801: checking build system type 16configure:2815: result: x86_64-apple-darwin18.7.0 17configure:2835: checking host system type 18configure:2848: result: x86_64-apple-darwin18.7.0 19configure:2878: checking for python3.6 20configure:2894: found /usr/local/bin/python3.6 21configure:2905: result: python3.6 22configure:3005: checking for --enable-universalsdk 23configure:3052: result: no 24configure:3075: checking for --with-universal-archs 25configure:3090: result: no 26configure:3240: checking MACHDEP 27configure:3449: result: darwin 28configure:3470: checking for --without-gcc 29configure:3493: result: no 30configure:3496: checking for --with-icc 31configure:3516: result: no 32configure:3640: checking for gcc 33configure:3667: result: clang 34configure:3896: checking for C compiler version 35configure:3905: clang --version >&5 36Apple LLVM version 10.0.1 (clang-1001.0.46.4) 37Target: x86_64-apple-darwin18.7.0 38Thread model: posix 39InstalledDir: /Library/Developer/CommandLineTools/usr/bin 40configure:3916: $? = 0 41configure:3905: clang -v >&5 42Apple LLVM version 10.0.1 (clang-1001.0.46.4) 43Target: x86_64-apple-darwin18.7.0 44Thread model: posix 45InstalledDir: /Library/Developer/CommandLineTools/usr/bin 46Found CUDA installation: /usr/local/cuda, version unknown 47configure:3916: $? = 0 48configure:3905: clang -V >&5 49clang: error: unsupported option '-V -Wno-atomic-implicit-seq-cst' 50clang: error: no input files 51configure:3916: $? = 1 52configure:3905: clang -qversion >&5 53clang: error: unknown argument '-qversion', did you mean '--version'? 54clang: error: no input files 55configure:3916: $? = 1 56configure:3936: checking whether the C compiler works 57configure:3958: clang -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/user/.pyenv/versions/3.6.9/include -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib -L/Users/user/.pyenv/versions/3.6.9/lib conftest.c >&5 58dyld: Library not loaded: @rpath/libtapi.dylib 59 Referenced from: /Library/Developer/CommandLineTools/usr/bin/ld 60 Reason: image not found 61clang: error: unable to execute command: Abort trap: 6 62clang: error: linker command failed due to signal (use -v to see invocation) 63configure:3962: $? = 254 64configure:4000: result: no 65configure: failed program was: 66| /* confdefs.h */ 67| #define _GNU_SOURCE 1 68| #define _NETBSD_SOURCE 1 69| #define __BSD_VISIBLE 1 70| #define _BSD_TYPES 1 71| #define _DARWIN_C_SOURCE 1 72| /* end confdefs.h. */ 73| 74| int 75| main () 76| { 77| 78| ; 79| return 0; 80| } 81configure:4005: error: in `/var/folders/1w/n7_6cwys5c77hdvrl8v_r6ym0000gn/T/python-build.20191118174942.13224/Python-3.6.9': 82configure:4007: error: C compiler cannot create executables 83See `config.log' for more details 84 85 86(中略) 87 88## ----------- ## 89## confdefs.h. ## 90## ----------- ## 91 92/* confdefs.h */ 93#define _GNU_SOURCE 1 94#define _NETBSD_SOURCE 1 95#define __BSD_VISIBLE 1 96#define _BSD_TYPES 1 97#define _DARWIN_C_SOURCE 1 98 99configure: exit 77 100
補足情報(FW/ツールのバージョンなど)
pyenv 1.2.15
Mac Mojave 10.14.6
初心者なので丁寧に教えていただけると助かります
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー